Class CatalogAttachmentAddCmdImpl

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

    public class CatalogAttachmentAddCmdImpl
    extends AttachmentRelationBaseAddCmdImpl
    implements CatalogAttachmentAddCmd
    The CatalogAttachmentAddCmd is a URL and controller command that:
    • Adds a new attachment relation for the specified catalog.
    • Add the descriptions for the attachment relation.
    To obtain the Catalog ID
    • Catalog ID can be specified in the parameter
    • If Catalog ID is not specified, the catalog identifier should be specified. Identifier is used together with the member ID to obtain the Catalog ID. The member ID is obtained as the owner of the store where this command is called.
    • If the catalog identifier is not specified, the attachment relation ID should be provided as input. The attachment relation is then checked to see if it is a catalog attachment relation. The object ID found in the attachment relation is used as the catalog 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 ID or Identifier of the Catalog
    • 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:
    • CatalogAccessBean
    • AttachmentRelationAccessBean
    • AttachmentRelationDescriptionAccessBean
    • AttachmentRelationDescriptionDataBean
    Task Commands:
    • AddAttachmentRelationCmd
    • ,
    Utilities and Helpers:
    • AttachmentRelationHelper
    See Also:
    Serialized Form