Adds 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 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 | |
---|---|
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 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,
getResources,
getStoreId,
getUser,
getUserId,
performExecute,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void setMimeType(java.lang.String mimeType)
mimeType
- the MIME type fo the attachmentpublic void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
mimeTypeEncoding
- the MIME type encoding of the
attachmentpublic void setTradingId(java.lang.Long tradingId)
tradingId
- ID of the trading agreementpublic void setURI(java.lang.String uri)
uri
- the attachment URI