com.ibm.commerce.catalogattachment.commands

Class CatalogAttachmentDeleteCmdImpl

  • All Implemented Interfaces:
    AttachmentRelationBaseDeleteCmd, CatalogAttachmentDeleteCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, 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 CatalogAttachmentDeleteCmdImpl
    extends AttachmentRelationBaseDeleteCmdImpl
    implements CatalogAttachmentDeleteCmd
    This command will delete a catalog attachment relation with the specified parameters.
    Parameters:
    • atchrelId
    • catalogId
    • identifier
    • catalogId, atchrlusId, atchtgtId
    • identifier, atchrlusId, atchtgtId
    Behavior:
    • Delete by the attachment relation.
      • The delete by business object option is set to False
      • If the attachment relation ID is not specified, then the catalogId, attachment target ID, attachment relation usage ID must be specified. Otherwise an exception will be thrown. The catalog Id can be replaced by the catalog identifier. This parameters will then be used to obtain the attachment relation ID. If the attachment relation ID cannot be found, an exception will be thrown.
      • Delete the corresponding attachment relation.
      • Delete the corresponding attachment relation descriptions.
    • Delete all the attachment relations in a business object.
      • The delete by business object option is set to True or the following parameters are set to null:
        • atchrelId (the attachment relation ID)
        • atchrlusId (the attachment relation usage ID)
        • atchtgtId (the attachment target ID)
      • The catalogId or catalog identifier must be specified, an exception will be thrown if any one of these parameters are missing.
      • Find all the attachment relation belongs to this catalog, and delete all the attachment relations found.
      • For all the attachment relations deleted, delete the corresponding attachment relation descriptions.
    • By default, the delete by business object is set to False so it will delete only the specified attachment relation and relation descriptions.
    Access Bean:
    • AttachmentRelationAccessBean
    Task Commands:
    • DeleteAttachmentRelationCmd
    Helper:
    • AttachmentRelationHelper
    See Also:
    Serialized Form