com.ibm.commerce.attachment.commands

Class DeleteAttachmentTargetCmdImpl

  • All Implemented Interfaces:
    DeleteAttachmentTargetCmd, 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 DeleteAttachmentTargetCmdImpl
    extends TaskCommandImpl
    implements DeleteAttachmentTargetCmd
    Deletes an attachment target with the specified parameters.
    Behaviour:
    • If the attachment targe ID is not specified, then it will use the identifier, store entity ID, and member ID to find the attachment target.
      • If the store entity ID is not specified, then it will be obtained from the command context store ID.
      • If the member ID is not specified, then it will be set as the owner ID of the store.
      • If the identifier is not specified, an exception will be thrown.
    • If the attachment target is used in any attachment relations, an exception will be thrown disallowing the attachment target to be deleted.
    • All the attachment assets and attachment asset languages in the attachment target will be deleted.
    • Deletes all the attachment target descriptions/
    • Deletes the attachment target
    Access Bean:
    • AttachmentTargetAccessBean
    • AttachmentAssetAccessBean
    • 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

      • DeleteAttachmentTargetCmdImpl

        public DeleteAttachmentTargetCmdImpl()
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Gets the identifier of the attachment target
        Specified by:
        getIdentifier in interface DeleteAttachmentTargetCmd
        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
      • setAttachmentTargetId

        public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
        Sets the attachment target ID for the attachment target to be deleted.
        Specified by:
        setAttachmentTargetId in interface DeleteAttachmentTargetCmd
        Parameters:
        anAttachmentTargetId - The attachment target ID
      • setStoreentId

        public void setStoreentId(java.lang.Integer anStoreentId)
        Sets the store entity ID.
        Specified by:
        setStoreentId in interface DeleteAttachmentTargetCmd
        Parameters:
        anStoreentId - The store entity ID
      • setIdentifier

        public void setIdentifier(java.lang.String astrIdentifier)
        Sets the identifier of the attachment target.
        Specified by:
        setIdentifier in interface DeleteAttachmentTargetCmd
        Parameters:
        astrIdentifier - The attachment target identifier
      • 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 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 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