Class CatalogGroupAttachmentDeleteCmdImpl

  • All Implemented Interfaces:
    AttachmentRelationBaseDeleteCmd, CatalogGroupAttachmentDeleteCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable,,,,,,

    public class CatalogGroupAttachmentDeleteCmdImpl
    extends AttachmentRelationBaseDeleteCmdImpl
    implements CatalogGroupAttachmentDeleteCmd
    This command will delete the catalog group attachment relation with the specified parameters.
    • atchrelId
    • catgroupId
    • identifier
    • catgroupId, atchrlusId, atchtgtId
    • identifier, atchrlusId, atchtgtId
    • 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 catalog group ID, attachment target ID, attachment relation usage ID must be specified. Otherwise an exception will be thrown. The catalog group ID can be replaced by the catalog group 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 catgroupId or 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 group, 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 Group Id (catgroupId) is specified, the command will use the catgroupId instead of the Identifier (identifier). If catgroupId is not specified, identifier can be specified. The identifier is used together with the member ID to obtain the Catalog Group ID. The member ID is obtained as the owner of the store where the command is called.
    Access Bean:
    • AttachmentRelationAccessBean
    Task Commands:
    • DeleteAttachmentRelationCmd
    • AttachmentRelationHelper
    See Also:
    Serialized Form