public class ContractTCDeployCmdImpl extends com.ibm.commerce.command.AsyncControllerCommandImpl implements ContractTCDeployCmd
ContractTCDeployCmd
controller command.
Name | Description |
---|---|
contractId |
The ID of term and condition. It is mandatory. |
tcIds |
The XML string contains the terms and conditions. |
url |
The redirect URL. |
ContractAccessBean
TermConditionAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME, URLNAME
Constructor and Description |
---|
ContractTCDeployCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getContractId()
Gets the ID of the contract to be updated.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
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 |
setRedirectURL(java.lang.String url)
Sets the redirect URL.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void |
setTCIds(java.lang.String[] tcIds)
Sets the IDs of the terms and conditions to be deployed.
|
void |
validateParameters()
Validates if the contracts are in either Active or Suspended state.
|
getJobInstanceId, getJobReferenceId, getResponseProperties, setJobInstanceId, setJobReferenceId
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
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
getJobInstanceId, getJobReferenceId, setJobInstanceId, setJobReferenceId
accessControlCheck, getAccCheck, setAccCheck
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 java.lang.Long getContractId()
getContractId
in interface ContractTCDeployCmd
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 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
public void setContractId(java.lang.Long contractId)
setContractId
in interface ContractTCDeployCmd
contractId
- The contract ID.public void setRedirectURL(java.lang.String url)
setRedirectURL
in interface ContractTCDeployCmd
url
- The redirect URL.public 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 are missed.public void setTCIds(java.lang.String[] tcIds)
setTCIds
in interface ContractTCDeployCmd
tcIds
- The XML string contains the terms and conditions.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