com.ibm.commerce.catalogattachment.commands

Class CatalogEntryAttachmentDeleteCmdImpl

  • All Implemented Interfaces:
    AttachmentRelationBaseDeleteCmd, CatalogEntryAttachmentDeleteCmd, 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 CatalogEntryAttachmentDeleteCmdImpl
    extends AttachmentRelationBaseDeleteCmdImpl
    implements CatalogEntryAttachmentDeleteCmd
    This command will delete the catalog entry attachment relations with the specified parameters.
    Parameters:
    • atchrelId
    • catentryId
    • partnumber
    • catentryId, atchrlusId, atchtgtId
    • partnumber, 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 information about the attachment relation must be specified. These information includes the catalog entry ID, the attachment target ID, and the attachment relation usage ID. The catalog entry ID can be replaced by the part number of the catalog entry. These 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 catentryId or part number 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.
    • If the Catalog Entry Id (catentryId) is specified, the command will use the catentryId instead of the catalog entry part number. If catentryId is not specified, then the part number must be specified. The part number is used together with the member ID to obtain the Catalog Entry ID. The member ID is obtained as the owner of the store where the command is called.
    Access Bean:
    • AttachmentRelationAccessBean
    Task Commands:
    • DeleteAttachmentRelationCmd
    Helper:
    • AttachmentRelationHelper
    See Also:
    Serialized Form