Class CatalogEntryAttachmentUpdateCmdImpl

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

    public class CatalogEntryAttachmentUpdateCmdImpl
    extends AttachmentRelationBaseUpdateCmdImpl
    implements CatalogEntryAttachmentUpdateCmd
    The CatalogEntryAttachmentUpdateCmd is a URL and controller command that:
    • Updates a new attachment relation for the specified catalog entry.
    • Updates the description for the attachment relation.
    To obtain the Catalog Entry ID:
    • Catalog Entry ID can be specified in the parameter.
    • If Catalog Entry ID is not specified, part number can be specified. 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.
    • If the part number is not specified, then the attachment relation ID must be specified. The attachment relation is checked to see if it is a catalog entry attachment relation. The object ID found in the attachment relation is used as the catalog entry 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. Its 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 descriptions are not found. Parameters:

    • Catalog Entry ID or part number of the Catalog Entry
    • 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:
    • CatalogEntryAccessBean
    • AttachmentRelationAccessBean
    • AttachmentRelationDescriptionAccessBean
    • AttachmentRelationDescriptionDataBean
    Task Commands:
    • AddAttachmentRelationCmd
    • ,
    • UpdateAttachmentRelationCmd
    • ,
    Utilities and Helpers:
    • AttachmentRelationHelper
    See Also:
    Serialized Form