com.ibm.commerce.tools.attachment.commands

Class AttachmentXMLControllerCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, AttachmentXMLControllerCmd, ToolsControllerCommand, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AttachmentXMLControllerCmdImpl
    extends ToolsControllerCommandImpl
    implements AttachmentXMLControllerCmd
    The AttachmentXMLControllerCmd is a URL command that:
    • Create Attachment Assets for Attachment Target
    • Create Attachment Target for Attachment Relation
    • Create Attachment Relation
    • Update Attachment Assets for the Attachment Target.
    • Update Attachment Asset Languages for each Attachment Asset in the Attachment Target.
    • Update Attachment Asset Path
    • Update Attachment Relation Properties
    • Delete Attachment Relations
    Purpose:
      This command is used by the Attachment GUI in Commerce Accelerator. It is designed to satisfy the UI requirements.
    Parameters:
      XML Format for Attachment Relations action type objectId url atchobjtyp usageId assetPath
        assetPath atchtgtId mimeType
      • action - create, update, delete
      • type - atchrel
      • url - Return URL
      • objectId - the primary key for the Commerce business object
      • atchobjtyp - Object Type: CATALOG, CATGROUP, CATENTRY, COLLATERAL
      • usageId - The usage type
      • assetPath
        • assetPath - Path of the file
        • atchtgtId - Attachment Target ID
        • mimeType - Mimetype for this file

      XML Format for Attachment Relation Description
      action
      type
      url
      atchRelId
      storeId
      memberId
      description
      • languageId
      • name
      • shortDesc
      • longDesc
      • action - update
      • type - atchrel
      • url - Return URL
      • atchRelId - Attachment Relation ID
      • storeId - Store ID
      • memberId - Member ID
      • description - this tag can occur multiple times
        • languageId - Path of the file
        • name - Name
        • shortDesc - Short description
        • longDesc - Long description

      XML Format for Attachment Asset and Attachment Asset Languages
      action
      type
      url
      atchast
      • atchastId
      • storeId
      • atchtgtId
      • assetPath
      • directoryPath
      • mimeType
      • image1
      • language
      • remove
      • action
      • action - update
      • type - atchast
      • url - Return URL
      • atchast
        • atchastId - Attachment Asset ID
        • storeId - Store ID
        • atchtgtId - Attachment Target ID
        • assetPath - Path for the file
        • directoryPath - Path for the directory
        • mimeType - Mimetype for this file
        • image1 - Icon URL
        • language - Languages supported by this asset, this tag can occur multiple times
        • remove - Remove flag
        • action - Action
    See Also:
    Serialized Form