Class CatalogEntryAttachmentAddCmdImpl

  • All Implemented Interfaces:
    AttachmentRelationBaseAddCmd, CatalogEntryAttachmentAddCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable,,,,,,

    public class CatalogEntryAttachmentAddCmdImpl
    extends AttachmentRelationBaseAddCmdImpl
    implements CatalogEntryAttachmentAddCmd
    The CatalogEntryAttachmentAddCmd is a URL and controller command that:
    • Adds a new attachment relation for the specified catalog entry.
    • Add the descriptions 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 this command is called.
    • If the part number is not specified, the attachment relation ID must be specified. The attachment relation is checked to determine 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 only attachment relation description will be created. If the command is called as URL. Only one description can be created. Otherwise, multiple descriptions can be created by setting the vector of AttachmentRelationDescriptionDataBean.

    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. 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
    • ,
    Utilities and Helpers:
    • AttachmentRelationHelper
    See Also:
    Serialized Form