com.ibm.commerce.attachment.commands

Interface UpdateAttachmentAssetCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    UpdateAttachmentAssetCmdImpl


    public interface UpdateAttachmentAssetCmd
    extends TaskCommand
    Interface for the task command UpdateAttachmentAsset This task command updates an attachment asset. The value of the create missing option determines whether to create the attachment asset or not when no such attachment asset exists for update. By default, the create missing option is set to true. Parameters cannot be set into the task command by the request properties.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        static final java.lang.String CLASSNAME
        Define the CLASSNAME.
        See Also:
        Constant Field Values
    • Method Detail

      • getAttachmentAssetId

        java.lang.Long getAttachmentAssetId()
        Gets the attachment asset ID.
        Returns:
        The attachment asset ID
      • getAttachmentTargetId

        java.lang.Long getAttachmentTargetId()
        Gets the attachment target ID that owns the attachment asset.
        Returns:
        The attachment target ID
      • getStoreentId

        java.lang.Integer getStoreentId()
        Gets the store entity ID.
        Returns:
        The store entity ID
      • getAttachmentAssetPath

        java.lang.String getAttachmentAssetPath()
        Gets the path for the attachment asset.
        Returns:
        The attachment asset path
      • getImage1

        java.lang.String getImage1()
        Gets the image 1 of the attachment asset.
        Returns:
        The image 1
      • getImage2

        java.lang.String getImage2()
        Gets the image 2 of the attachment asset.
        Returns:
        The image 2
      • getMimeType

        java.lang.String getMimeType()
        Gets the mime type of the attachment asset.
        Returns:
        The attachment asset mime type
      • getMimeTypeEncoding

        java.lang.String getMimeTypeEncoding()
        Gets the encoding of the mime type of the attachment asset.
        Returns:
        The encoding of the attachment asset mime type
      • getContent

        byte[] getContent()
        Gets the content of the attachment asset. If caller did not set the content. The content will be obtained from the database.
        Returns:
        The attachment asset content
      • setAttachmentAssetId

        void setAttachmentAssetId(java.lang.Long anAttachmentAssetId)
        Sets the attachment asset ID.
        Parameters:
        anAttachmentAssetId - The attachment asset ID
      • setAttachmentTargetId

        void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
        Sets the attachment target ID.
        Parameters:
        anAttachmentTargetId - The attachment target ID
      • setStoreentId

        void setStoreentId(java.lang.Integer anStoreentId)
        Sets the store entity ID.
        Parameters:
        anStoreentId - The store entity ID
      • setAttachmentAssetPath

        void setAttachmentAssetPath(java.lang.String astrAttachmentAssetPath)
        Sets the path of the attachment asset.
        Parameters:
        astrAttachmentAssetPath - The attachment asset path
      • setImage1

        void setImage1(java.lang.String astrImage1)
        Sets the image 1 of the attachment asset.
        Parameters:
        astrImage1 - The image 1
      • setImage2

        void setImage2(java.lang.String astrImage2)
        Sets the image 2 of the attachment asset.
        Parameters:
        astrImage2 - The image 2
      • setMimeType

        void setMimeType(java.lang.String astrMimeType)
        Sets the mime type of the attachment asset.
        Parameters:
        astrMimeType - The attachment asset mimetype
      • setMimeTypeEncoding

        void setMimeTypeEncoding(java.lang.String astrMimeTypeEncoding)
        Sets the encoding of the mime type of the attachment asset.
        Parameters:
        astrMimeTypeEncoding - The encoding of the attachment asset mimetype
      • setCreateMissing

        void setCreateMissing(java.lang.Boolean aboolCreateMissing)
        Sets the option the create missing attachment asset.
        • True - create the missing attachment asset.
        • False - throw exception if the attachment asset.
        By default, the option is set to True.
        Parameters:
        aboolCreateMissing - The create missing flag
      • setContent

        void setContent(byte[] abaAssetContent)
        Sets the content of the attachment asset.
        Parameters:
        abaAssetContent - The attachment asset content