public class ContractSaveCmdImpl extends TradingAgreementImportBaseCmdImpl implements ContractSaveCmd
Name | Description |
---|---|
ContractId | The id of the contract. Mandatory. |
ContractState | The state of the contract. Optional. |
CurrentContractState | The current state of the contract. Sets this parameter before executing isInRightStateToUpdate() |
LanguageId | The language id. Optional. |
LastUpdatedTime | The last update time of the contract. Optional. |
request properties | the request properties. Possible values include redirecturl, XMLFile, xml, XSDValidation, LastUpdatedTime. Optional. |
XML | the input xml string. Mandatory. |
XSDValidation | The XSD validation flag. If the flag is set to true, the xml parser will validate the xml instance against the specified XSD file. Mandatory. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ContractSaveCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer | getContractState()
Returns the contract state.
|
TypedProperty | getViewInputProperties()
This method is called by the web controller to retrieve the request properties set by the setRequestProperties() method.
|
boolean | isInRightStateToUpdate()
Checks if the contract is in right state for updating action.
|
boolean | isUpdate()
Returns if the action of this command based on the information inside the xml string.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setContractId(java.lang.Long contractId)
Sets the contract id parameter.
|
void | setContractState(java.lang.Integer contractState)
Sets the contract state parameter.
|
void | setCurrentContractState(java.lang.Integer curContractState)
Sets the current contract state parameter.
|
void | setLanguageId(java.lang.Integer langId)
Sets the language id parameter.
|
void | setLastUpdatedTime(java.lang.String lastUpdatedTime)
Sets the last update time of the contract.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void | setXML(java.lang.String xmlString)
Sets the input xml string.
|
void | setXSDValidation(boolean bValidation)
Sets the XSD validation flag.
|
void | validateParameters()
The method checks if the information provided in contract Element object is valid.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Integer getContractState()
public TypedProperty getViewInputProperties()
public boolean isInRightStateToUpdate()
public boolean isUpdate()
public void performExecute() throws ECException
public void setContractId(java.lang.Long contractId)
public void setContractState(java.lang.Integer contractState)
public void setCurrentContractState(java.lang.Integer curContractState)
public void setLanguageId(java.lang.Integer langId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setLastUpdatedTime(java.lang.String lastUpdatedTime)
public void setXML(java.lang.String xmlString)
public void setXSDValidation(boolean bValidation)
public void validateParameters() throws ECException