public class ContractAttachmentAddCmdImpl extends ControllerCommandImpl implements ContractAttachmentAddCmd
Name | Description |
---|---|
contractId | The contract ID. It is mandatory. |
url | The uri for an attachment. It is mandatory. |
mimeType | The mime type of the attachment. It is optional. |
mimeTypeEncoding | The encoding of mime type of the attachment. It is optional. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The full name of this class.
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ContractAttachmentAddCmdImpl()
Constructor for ContractAttachmentAddCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
void | performExecute()
Executes the business logic of this command implementation.
|
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 | setRequestProperties(TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void | setTradingId(java.lang.Long newInTradingId)
Sets the ID of the trading agreement to which the attachment will be added.
|
void | setURI(java.lang.String newIstrURI)
Sets URI of the attachment.
|
void | validateParameters()
Validates the contract to check if it is in right state for this process.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public ContractAttachmentAddCmdImpl()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
public void setMimeType(java.lang.String mimeType)
public void setMimeTypeEncoding(java.lang.String mimeTypeEncoding)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setTradingId(java.lang.Long newInTradingId)
public void setURI(java.lang.String newIstrURI)
public void validateParameters() throws ECException