com.ibm.commerce.contract.commands

Interface ContractAttachmentAddCmd

  • All Superinterfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.security.Protectable
    All Known Implementing Classes:
    ContractAttachmentAddCmdImpl


    public interface ContractAttachmentAddCmd
    extends com.ibm.commerce.command.ControllerCommand
    This controller command is used to add an attachment to the contract. If the attachment does not exist, the command will add the attachment first (WebSphere Commerce Enterprise only). The default implementation of this command is ContractAttachmentAddCmdImpl. The ContractAttachmentAdd URL is mapped to this command by default.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      The name of default implementation class.
      static java.lang.String NAME
      The name of this interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void setMimeType(java.lang.String mimeType)
      Sets the MIME type of the attachment.
      void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
      Sets the MIME type encoding of the attachment.
      void setTradingId(java.lang.Long tradingId)
      Sets the ID of the trading agreement to which the attachment will be added
      void setURI(java.lang.String uri)
      Sets URI of the attachment.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.command.ControllerCommand

        checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
      • Methods inherited from interface com.ibm.commerce.command.AccCommand

        accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.security.Protectable

        fulfills, getOwner
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The name of default implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • setMimeType

        void setMimeType(java.lang.String mimeType)
        Sets the MIME type of the attachment.
        Parameters:
        mimeType - the MIME type for the attachment
      • setMimeTypeEncoding

        void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
        Sets the MIME type encoding of the attachment.
        Parameters:
        mimeTypeEncoding - the MIME type encoding of the attachment
      • setTradingId

        void setTradingId(java.lang.Long tradingId)
        Sets the ID of the trading agreement to which the attachment will be added
        Parameters:
        tradingId - ID of the trading agreement
      • setURI

        void setURI(java.lang.String uri)
        Sets URI of the attachment.
        Parameters:
        uri - the attachment URI