public class AddContractNLDescriptionCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements AddContractNLDescriptionCmd
AddContractNLDescriptionCmd
task command.
TermConditionAccessBean
ContractAccessBean
TradingDescriptionAccessBean
TermConditionDescriptionAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of the default implementation.
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName
Constructor and Description |
---|
AddContractNLDescriptionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getContractId()
Gets the ID of the contract.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
setContractNLDescriptionElement(org.w3c.dom.Element element)
Sets the contract national language description element.
|
void |
validateParameters()
Validates the given contract information in the Element object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.Long getContractId()
getContractId
in interface AddContractNLDescriptionCmd
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
AbstractECTargetableCommand.getResources()
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_TRADING_DESC_LOCALE if the locale of the contract description is not a supported one.
Raised with message _ERR_TC_DESC_LOCALE if the locale in one of the terms and conditions description is not a supported one.
Raised with message _ERR_MISSING_SEQUENCE_NUMBER_IN_TC_DESC if the "sequenceNumber" attribute is
missing from one of the TermConditionDescription elements.
Raised with message _ERR_TERM_CONDITION_NOT_FOUND whenever if the term condition cannot be found. It is
based on the contract id and "sequenceNumber" in one of the TermConditionDescription elements.
Raised with message _ERR_NUMBER_FORMAT_EXCEPTION if the "sequenceNumber" is not an Integer string.AbstractECTargetableCommand.performExecute()
public void setContractNLDescriptionElement(org.w3c.dom.Element element)
setContractNLDescriptionElement
in interface AddContractNLDescriptionCmd
element
- the ContractNationalLanguageDescription elementpublic void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_WRONG_CONTRACT_OWNER_MEMBER_INFO if the information provided
in contract owner element is incorrect so that the contract owner id cannot be retrieved.
Raised with message _ERR_CONTRACT_NOT_FOUND if the contract object cannot be found. It is based on the
provided contract name, major version, minor version, origin, owner.
Raised with message _ERR_VERSION_NUMBER_FORMAT if the either the major version or minor version of the contract is not Integer.AbstractECTargetableCommand.validateParameters()