com.ibm.commerce.contract.commands
Interface ContractAttachmentAddCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
ContractAttachmentAddCmdImpl

public interface ContractAttachmentAddCmd
extends ControllerCommand

Add an attachment to the contract, if the attachment does not exist, the command will add the attachment first (WebSphere Commerce Business Edition only).


Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
static java.lang.String defaultCommandClassName
          The default implementation class is "com.ibm.commerce.contract.commands.ContractAttachmentAddCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.ContractAttachmentAddCmd".
 
Method Summary
 void setMimeType(java.lang.String mimeType)
          Set mime type of the attachment
 void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
          Set mime type encoding of the attachment
 void setTradingId(java.lang.Long tradingId)
          Set id of the trading agreement to which the attachment will be added
 void setURI(java.lang.String uri)
          Set URI of the attachment
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class is "com.ibm.commerce.contract.commands.ContractAttachmentAddCmdImpl".

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.contract.commands.ContractAttachmentAddCmd".
Method Detail

setMimeType

public void setMimeType(java.lang.String mimeType)
Set mime type of the attachment
Parameters:
mimeType - java.lang.String

setMimeTypeEncoding

public void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
Set mime type encoding of the attachment
Parameters:
mimeTypeEncoding - java.lang.String

setTradingId

public void setTradingId(java.lang.Long tradingId)
Set id of the trading agreement to which the attachment will be added
Parameters:
tradingId - java.lang.Long

setURI

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