com.ibm.commerce.attachment.commands

Class AddAttachmentTargetCmdImpl

  • All Implemented Interfaces:
    AddAttachmentTargetCmd, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AddAttachmentTargetCmdImpl
    extends TaskCommandImpl
    implements AddAttachmentTargetCmd
    Create an attachment target with the specified parameters.
    Behavior:
    • If the store entity ID is not specified, the store ID from the command context will be used.
    • If the member ID is not specified, the owner ID of the store will be used.
    • If the attachment target identifier is null, the attachment target ID will be used as the identifier.
    Access Bean:
    • AttachmentTargetAccessBean
    • StoreEntityAccessBean
    Helper:
    • AttachmentTargetHelper
    See Also:
    Serialized Form
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        Define the CLASSNAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddAttachmentTargetCmdImpl

        public AddAttachmentTargetCmdImpl()
    • Method Detail

      • getMemberId

        public java.lang.Long getMemberId()
        Gets the owner ID of the attachment target.
        Specified by:
        getMemberId in interface AddAttachmentTargetCmd
        Returns:
        The owner ID of the attachment target
      • getStoreentId

        public java.lang.Integer getStoreentId()
        Gets the store entity ID of the attachment target.
        Specified by:
        getStoreentId in interface AddAttachmentTargetCmd
        Returns:
        The store entity ID of the attachment target
      • getAttachmentUsageId

        public java.lang.String getAttachmentUsageId()
        Gets the attachment usage ID of the attachment target.
        Specified by:
        getAttachmentUsageId in interface AddAttachmentTargetCmd
        Returns:
        The attachment usage ID
      • getField1

        public java.lang.Long getField1()
        Gets the customizable field 1.
        Specified by:
        getField1 in interface AddAttachmentTargetCmd
        Returns:
        The customizable field 1
      • getField2

        public java.lang.Double getField2()
        Gets the customizable field 2.
        Specified by:
        getField2 in interface AddAttachmentTargetCmd
        Returns:
        Field 2
      • getField3

        public java.lang.String getField3()
        Gets the customizable field 3.
        Specified by:
        getField3 in interface AddAttachmentTargetCmd
        Returns:
        The customizable field 3
      • getField4

        public java.lang.String getField4()
        Gets the customizable field 4.
        Specified by:
        getField4 in interface AddAttachmentTargetCmd
        Returns:
        The customizable field 4
      • getIdentifier

        public java.lang.String getIdentifier()
        Gets the attachment target identifier.
        Specified by:
        getIdentifier in interface AddAttachmentTargetCmd
        Returns:
        The attachment target identifier
      • reset

        public void reset()
        Resets all the parameters
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setMemberId

        public void setMemberId(java.lang.Long anMemberId)
        Sets the owner ID of the attachment target.
        Specified by:
        setMemberId in interface AddAttachmentTargetCmd
        Parameters:
        anMemberId - The owner ID of the attachment target
      • setStoreentId

        public void setStoreentId(java.lang.Integer anStoreentId)
        Sets the store entity ID of the attachment target.
        Specified by:
        setStoreentId in interface AddAttachmentTargetCmd
        Parameters:
        anStoreentId - The store entity ID
      • setAttachmentUsageId

        public void setAttachmentUsageId(java.lang.String astrAttachmentUsageId)
        Sets the attachment usage ID of the attachment target.
        Specified by:
        setAttachmentUsageId in interface AddAttachmentTargetCmd
        Parameters:
        astrAttachmentUsageId -
      • setField1

        public void setField1(java.lang.Long anField1)
        Sets the customizable field 1.
        Specified by:
        setField1 in interface AddAttachmentTargetCmd
        Parameters:
        anField1 -
      • setField2

        public void setField2(java.lang.Double adField2)
        Sets the customizable field 2.
        Specified by:
        setField2 in interface AddAttachmentTargetCmd
        Parameters:
        adField2 - The customizable field 2
      • setField3

        public void setField3(java.lang.String astrField3)
        Sets the customizable field 3.
        Specified by:
        setField3 in interface AddAttachmentTargetCmd
        Parameters:
        astrField3 - The customizable field 3
      • setField4

        public void setField4(java.lang.String astrField4)
        Sets the customizable field 4
        Specified by:
        setField4 in interface AddAttachmentTargetCmd
        Parameters:
        astrField4 - The customizable field 4
      • setIdentifier

        public void setIdentifier(java.lang.String astrIdentifier)
        Sets the identifier of the attachment target.
        Specified by:
        setIdentifier in interface AddAttachmentTargetCmd
        Parameters:
        astrIdentifier - The identifier of the attachment target