public class ContractTCSaveCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements ContractTCSaveCmd
ContractTCSaveCmd
controller command.
Name | Description |
---|---|
contractId |
The contract ID. It is mandatory. |
lastUpdatedTime |
the last update time string. |
xmlString |
The XML string contains the terms and conditions. |
bValidation |
Sets the XSD validation flag. If the flag is set to true, the XML parser will validate the XML instance against the specified XSD file. true: validate, false: do not validate. |
ContractAccessBean
TermConditionAccessBean
TermConditionDescriptionAccessBean
LanguageAccessBean
ParticipantAccessBean
ContractJDBCHelperAccessBean.getTCAccessBeanNameBySubType(String subType).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
SYNCHRONOUS_DEPLOYMENT
The synchronous deployment parameter.
|
defaultCommandClassName
Constructor and Description |
---|
ContractTCSaveCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer[] |
getCatalogFilterReferencedStoreIds()
This method returns the referenced store identifiers for catalog filter term condition.
|
java.lang.Integer[] |
getPriceRuleReferencedStoreIds()
This method provides the Id of stores which will be affected by applying a price rule TC to a contract.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
com.ibm.commerce.datatype.TypedProperty |
getViewInputProperties()
This method is called by the web controller to retrieve the request properties set
by the setRequestProperties() method.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setContractId(java.lang.Long contractId)
Sets the ID of the contract to be updated.
|
void |
setLastUpdatedTime(java.lang.String lastUpdatedTime)
Sets the last update time of the contract.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void |
setXML(java.lang.String xmlStirng)
Sets XML string of the terms and conditions to save.
|
void |
setXSDValidation(boolean bValidation)
Sets the XSD validation flag.
|
void |
validateParameters()
Validates the contract to check if it is in right state for this process.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String SYNCHRONOUS_DEPLOYMENT
public java.lang.Integer[] getCatalogFilterReferencedStoreIds()
public java.lang.Integer[] getPriceRuleReferencedStoreIds()
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
public com.ibm.commerce.datatype.TypedProperty getViewInputProperties()
getViewInputProperties
in interface com.ibm.commerce.command.ControllerCommand
getViewInputProperties
in class com.ibm.commerce.command.ControllerCommandImpl
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_CONTRACT_TC_SAVE whenever the system has a problemAbstractECTargetableCommand#performExecute()
public void setContractId(java.lang.Long contractId)
setContractId
in interface ContractTCSaveCmd
contractId
- The contract ID.public void setLastUpdatedTime(java.lang.String lastUpdatedTime)
setLastUpdatedTime
in interface ContractTCSaveCmd
lastUpdatedTime
- the last update time stringpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties) throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.command.ControllerCommandImpl
aRequestProperties
- An TypedProperty object contains the input parameters.com.ibm.commerce.exception.ECApplicationException
- Raised with message _ERR_MISSING_CMD_PARAMETER when contractId and the input XML string is missed.ControllerCommand#setRequestProperties(TypedProperty)
public void setXML(java.lang.String xmlStirng)
setXML
in interface ContractTCSaveCmd
xmlStirng
- The XML string contains the terms and conditions.public void setXSDValidation(boolean bValidation)
setXSDValidation
in interface ContractTCSaveCmd
bValidation
- the validation flag, true: validate, false: do not validate.public 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_STATE when if the contract in one of the following states: Cancel, Closed, Pending,
DeploymentInProgress, DeploymentFailed, or the contract is not in Active state but the deploy flag is set to true.
Raised with _ERR_CONTRACT_OBJECT_NOT_FOUND if the contract cannot be found, it is based on the provided contract id.
Raised with _ERR_CONTRACT_HAS_BEEN_CHANGED if the contract has been changed by someone else.AbstractECTargetableCommand#validateParameters()