public class CreateContractBasicInfoCmdImpl extends TaskCommandImpl implements CreateContractBasicInfoCmd
| Modifier and Type | Field and Description |
|---|---|
java.lang.Long |
accountId
Account ID.
|
java.lang.String |
contractName
Contract name.
|
java.lang.Long |
contractOwner
Contract owner.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.Long |
tradingId
Trading ID.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateContractBasicInfoCmdImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getAccountId()
Retrieves the account Id.
|
java.lang.String |
getContractName()
Retrieves the name of the contract.
|
java.lang.Long |
getContractOwner()
Retrieves the ID of the contract owner.
|
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID.
|
void |
performExecute()
Creates a contract using an existing trading agreement object.
|
void |
reset()
Reset the command.
|
void |
setAccountId(java.lang.Long newAccountId)
Stores the account ID.
|
void |
setContractName(java.lang.String newContractName)
Stores the incoming value for the contract name.
|
void |
setContractOwner(java.lang.Long newContractOwner)
Stores the incoming value for the contract owner ID.
|
void |
setTradingId(java.lang.Long newTradingId)
Stores the incoming value for the Trading Agreement ID.
|
void |
validateParameters()
This method does the following:
Checks if a name has been provided for the contract. Checks if a trading agreement ID has been provided. Checks if incoming trading agreement ID is valid. Checks if the supplied name is already being used by another contract in the system. |
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.String contractName
public java.lang.Long tradingId
public java.lang.Long contractOwner
public java.lang.Long accountId
public CreateContractBasicInfoCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic java.lang.Long getAccountId()
public java.lang.String getContractName()
public java.lang.Long getContractOwner()
public java.lang.Long getTradingId()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECApplicationException - If an error occurs while creating the contract object.ECException - If a system error occurs prior to creating the contract.ECSystemExceptionECCommand#performExecute()public void setAccountId(java.lang.Long newAccountId)
setAccountId in interface CreateContractBasicInfoCmdnewAccountId - The account Id.public void setContractName(java.lang.String newContractName)
setContractName in interface CreateContractBasicInfoCmdnewContractName - The name of the contract.public void setContractOwner(java.lang.Long newContractOwner)
setContractOwner in interface CreateContractBasicInfoCmdnewContractOwner - The ID of the contract owner.public void setTradingId(java.lang.Long newTradingId)
setTradingId in interface CreateContractBasicInfoCmdnewTradingId - The ID of the trading agreement.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - ECSystemException - ECExceptionECCommand#validateParameters()