java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.CreateContractBasicInfoCmdImpl
This is the default implementation of the CreateContractBasicInfoCmd. This command uses the following AccessBeans:
Field Summary | |
---|---|
java.lang.Long |
accountId Account Id. |
java.lang.String |
contractName Contract Name. |
java.lang.Long |
contractOwner Contract Owner. |
java.lang.Long |
tradingId Trading Id. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. CreateContractBasicInfoCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateContractBasicInfoCmdImpl() Default Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public java.lang.String contractName
public java.lang.Long tradingId
public java.lang.Long contractOwner
public java.lang.Long accountId
Constructor Detail |
---|
public CreateContractBasicInfoCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public 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
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECApplicationException
- If an error occurs while creating the
contract object.ECException
- If a system error occurs prior to creating the contract.
ECSystemException
ECCommand#performExecute()
public void setAccountId(java.lang.Long newAccountId)
setAccountId
in interface
CreateContractBasicInfoCmd
newAccountId
- The account Id.public void setContractName(java.lang.String newContractName)
setContractName
in interface
CreateContractBasicInfoCmd
newContractName
- The name of the
contract.public void setContractOwner(java.lang.Long newContractOwner)
setContractOwner
in interface
CreateContractBasicInfoCmd
newContractOwner
- The ID of the contract
owner.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface
CreateContractBasicInfoCmd
newTradingId
- The ID of the trading
agreement.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
-
ECSystemException
-
ECException
ECCommand#validateParameters()