com.ibm.commerce.attachment.commands

Class UpdateAttachmentTargetCmdImpl

  • All Implemented Interfaces:
    UpdateAttachmentTargetCmd, 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 UpdateAttachmentTargetCmdImpl
    extends TaskCommandImpl
    implements UpdateAttachmentTargetCmd
    Updates an attachment target.
    Behaviour:
    • Updates the attachment target with the specified attachment target ID.
    • If attachment target ID is not given, then the identifier, store entity ID, and member ID must be specified. These parameters will be used to determine the attachment target ID.
      • If the attachment target is found, it will be updated with the specified parameters.
      • If the attachment target is not found,
        • If the option to create missing attachment target is set to true, then it will call AddAttachmentTarget to create the attachment target.
        • If the option to create missing attachment target is set to false, then an exception will be thrown.
        • By default, the create missing attachment target option is set to true.
    • Owner of the attachment target cannot be changed.
    Access Bean:
    • AttachmentTargetAccessBean
    • StoreEntityAccessBean
    Other Commands:
    • AddAttachmentTarget
    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

      • UpdateAttachmentTargetCmdImpl

        public UpdateAttachmentTargetCmdImpl()
    • Method Detail

      • getMemberId

        public java.lang.Long getMemberId()
        Gets the owner ID of the attachment target.
        Specified by:
        getMemberId in interface UpdateAttachmentTargetCmd
        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 UpdateAttachmentTargetCmd
        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 UpdateAttachmentTargetCmd
        Returns:
        The attachment usage ID
      • getField1

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

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

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

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

        public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
        Sets the attachment target ID.
        Specified by:
        setAttachmentTargetId in interface UpdateAttachmentTargetCmd
        Parameters:
        anAttachmentTargetId - The attachment target ID
      • setMemberId

        public void setMemberId(java.lang.Long anMemberId)
        Sets the owner ID of the attachment target.
        Specified by:
        setMemberId in interface UpdateAttachmentTargetCmd
        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 UpdateAttachmentTargetCmd
        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 UpdateAttachmentTargetCmd
        Parameters:
        astrAttachmentUsageId -
      • setField1

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

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

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

        public void setField4(java.lang.String astrField4)
        Sets the customizable field 4
        Specified by:
        setField4 in interface UpdateAttachmentTargetCmd
        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 UpdateAttachmentTargetCmd
        Parameters:
        astrIdentifier - The identifier of the attachment target
      • setCreateMissing

        public void setCreateMissing(java.lang.Boolean aboolCreateMissing)
        Sets the option to create the missing attachment target.
        • True - create the missing attachment target.
        • False - throw exception if the attachment target.
        By default, the option is set to True.
        Specified by:
        setCreateMissing in interface UpdateAttachmentTargetCmd
        Parameters:
        aboolCreateMissing - The create missing flag
      • getCatalogIdsForCacheInvalidations

        public java.lang.String[] getCatalogIdsForCacheInvalidations()
                                                              throws ECException
        Gets the list of catalog IDs for cache invalidations.
        Returns:
        The string array of catalog IDs
        Throws:
        ECException
      • getCatentryIdsForCacheInvalidations

        public java.lang.String[] getCatentryIdsForCacheInvalidations()
                                                               throws ECException
        Gets the list of catalog entry IDs for cache invalidations.
        Returns:
        The string array of catalog entry IDs
        Throws:
        ECException
      • getCatgroupIdsForCacheInvalidations

        public java.lang.String[] getCatgroupIdsForCacheInvalidations()
                                                               throws ECException
        Gets the list of catalog group IDs for cache invalidations.
        Returns:
        The string array of catalog group IDs
        Throws:
        ECException
      • getCollateralIdsForCacheInvalidations

        public java.lang.String[] getCollateralIdsForCacheInvalidations()
                                                                 throws ECException
        Gets the list of collateral IDs for cache invalidations.
        Returns:
        The string array of collateral IDs
        Throws:
        ECException
      • getEMarketingSpotNamesForCacheInvalidations

        public java.util.Collection getEMarketingSpotNamesForCacheInvalidations()
                                                                         throws ECException
        Gets the list of e-Marketing Spot names for cache invalidations.
        Returns:
        The string array of e-Marketing Spot names
        Throws:
        ECException