Class CatalogGroupAttachmentUpdateCmdImpl

  • All Implemented Interfaces:
    AttachmentRelationBaseUpdateCmd, CatalogGroupAttachmentUpdateCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable,,,,,,

    public class CatalogGroupAttachmentUpdateCmdImpl
    extends AttachmentRelationBaseUpdateCmdImpl
    implements CatalogGroupAttachmentUpdateCmd
    The CatalogGroupAttachmentUpdateCmd is a URL and controller command that:
    • Updates a new attachment relation for the specified catalog group.
    • Updates the description for the attachment relation.
    To obtain the Catalog Group ID:
    • Catalog Group ID can be specified in the parameter.
    • If Catalog Group ID is not specified, the external catalog group identifier can be specified. 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 the command is called.
    • If the catalog group identifier is not specified, then the attachment relation ID must be given. The attachment relation is checked to see if it is a catalog group attachment relation. The object ID found in the attachment relation is used as the catalog group ID.

    If the attachment relation ID is specified, then the attachment relation will be updated. If the command is called as URL. Only one description can be created or updated. Otherwise, multiple descriptions can be updated by setting the vector of AttachmentRelationDescriptionDataBean.

    When updating the attachment relation, the command will change the parameters set by the command. However, the behaviour in updating the attachment relation description is different. The behaviour will depend on whether the command was called as a URL or as a command.

    • When creating the vector of AttachmentRelationDescriptionDataBean, the attachment relation ID from the databean will not be used. The attachment relation ID will be obtained from the command itself. Either user specified the attachment relation ID or it is obtained from the attachment relation just created by the command. Make sure that all the name, short description, and long description are set in the databean even if they are not changed. The command will take these name and descriptions as they are and update the attachment relation description.
    • However, when the command is executed as URL, it will only update the parameters set by the caller. If the name is set but the long description is not set, then only the name will be updated. The long description will remain unchanged.

    By default, the option to create the missing attachment relation and its description is set to True. If the option is set to false but the attachment relation is not found, an exception will be thrown. An exception will also be thrown if any of the attachment relation description is not found. Parameters:

    • Catalog Group ID or identifier of the Catalog Group
    • Attachment Relation ID
    • Attachment Target ID
    • Attachment Relation Usage ID
    • Sequence
    • Relation Name
    • Relation Description Language ID
    • Relation Short Description
    • Relation Long Description
    • Vector of AttachmentRelationDescriptionDataBean
    Access Beans and Data Beans:
    • CatalogGroupAccessBean
    • AttachmentRelationAccessBean
    • AttachmentRelationDescriptionAccessBean
    • AttachmentRelationDescriptionDataBean
    Task Commands:
    • AddAttachmentRelationCmd
    • ,
    • UpdateAttachmentRelationCmd
    • ,
    Utilities and Helpers:
    • AttachmentRelationHelper
    See Also:
    Serialized Form