com.ibm.commerce.contract.commands
Class AddContractNLDescriptionCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.contract.commands.AddContractNLDescriptionCmdImpl
- All Implemented Interfaces:
-
AddContractNLDescriptionCmd,
ECCommand,
ECTargetableCommand,
TaskCommand
- public class AddContractNLDescriptionCmdImpl
- extends
TaskCommandImpl
- implements
AddContractNLDescriptionCmd
Adds the contract national language description (WebSphere Commerce Business
Edition only). Normally this command will add the national language description
to the database. If an error occurred, an ECException will be thrown. Calling
commands: ContractImportDraftVersion, ContractImportApprovedVersion The
following AccessBean are used in this default implementation:
TermConditionAccessBean, ContractAccessBean, TradingDescriptionAccessBean,
TermConditionDescriptionAccessBean
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
CLASSNAME
The name of the default implementation. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
CLASSNAME
public static final java.lang.String CLASSNAME
- The name of the default implementation.
- See Also:
-
Constant Field Values
AddContractNLDescriptionCmdImpl
public AddContractNLDescriptionCmdImpl()
getContractId
public java.lang.Long getContractId()
- Gets the ID of the contract.
-
- Specified by:
-
getContractId
in interface
AddContractNLDescriptionCmd
-
- Returns:
- the contract ID
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation
returns the ContractAccessBean object of the specified contract
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of ContractAccessBean
- Throws:
-
ECException
- See Also:
-
AbstractECTargetableCommand.getResources()
public void performExecute()
throws ECException
- Saves the contract description, terms and conditions description(s).
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
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 ont of the terms and conditions descirption 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
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 a Integer
string.
- See Also:
-
AbstractECTargetableCommand.performExecute()
setContractNLDescriptionElement
public void setContractNLDescriptionElement(org.w3c.dom.Element element)
- Sets the contract national language description element.
-
- Specified by:
-
setContractNLDescriptionElement
in interface
AddContractNLDescriptionCmd
-
- Parameters:
element
- the ContractNationalLanguageDescription
element
validateParameters
public void validateParameters()
throws ECException
- Validates the given contract information in the Element object.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
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 retrived. Raised with message _ERR_CONTRACT_NOT_FOUND if the contract
object cannot be found based on the provided contract name, major version,
minor version, origin, owner. Raised with message _ERR_VERSION_NUMBER_FORMAT if
the either the major verion or minor version of the contract is not
Integer.
- See Also:
-
AbstractECTargetableCommand.validateParameters()