public class ContractDeployCmdImpl extends com.ibm.commerce.scheduler.commands.AddJobCmdImpl implements ContractDeployCmd
ContractDeployCmd
controller command.
| Name | Description |
|---|---|
contractId |
The contract ID. It is mandatory. |
targetStoreId |
The target store ID for deploying contract. It is mandatory. |
URL |
the redirect URL after the command be executed successfully.It is mandatory. |
ValidateBusinessPolicyInContractForStoreCmd
BusinessPolicyAccessBean
ContractAccessBean
TradingAgreementAccessBean
com.ibm.commerce.contract.objects.ContractJDBCHelperAccessBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The full name of this class.
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ContractDeployCmdImpl()
The constructor of this class
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getScheduledCommandName()
Gets the scheduled command name
|
java.lang.String |
getUrlName()
Gets the redirect URL
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setContractId(java.lang.Long contractId)
Sets the contract ID parameter
|
void |
setPropertiesForScheduler()
Sets the properties for scheduler
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Sets the request properties of this command implementation.
|
void |
validateParameters()
Extracts and validates the input parameters of this command implementation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationType, getAttempts, getCheckCommandId, getDelay, getHost, getInterfaceName, getJobId, getJobInstanceId, getStoreId, getUserRefNum, setApplicationType, setAttempts, setCheckCommandId, setDelay, setDescription, setEndTime, setErrorUrl, setHost, setInterfaceName, setInterval, setJobId, setJobInfo, setName, setPathInfo, setPriority, setQueryString, setSequence, setStartTime, setStoreId, setStringEndTime, setStringStartTime, setUrl, setUserRefNumcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public ContractDeployCmdImpl()
public com.ibm.commerce.accesscontrol.AccessVector getResources()
throws com.ibm.commerce.exception.ECException
getResources in interface com.ibm.commerce.command.ECCommandgetResources in class com.ibm.commerce.scheduler.commands.AddJobCmdImplcom.ibm.commerce.exception.ECExceptionAccessVectorpublic java.lang.String getScheduledCommandName()
public java.lang.String getUrlName()
public void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.scheduler.commands.AddJobCmdImplcom.ibm.commerce.exception.ECException - Raised with message _ERR_CONTRACT_SYS_GENERIC
whenever an error was occuredAddJobCmdImpl.performExecute()public void setContractId(java.lang.Long contractId)
setContractId in interface ContractDeployCmdcontractId - Contract IDpublic void setPropertiesForScheduler()
public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties in interface com.ibm.commerce.command.ControllerCommandsetRequestProperties in class com.ibm.commerce.scheduler.commands.AddJobCmdImplaRequestProperties - Request Properties
name-value pairs are: redirect URL, contract Id and target store Id. They are all
required.com.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER
if contract Id or store Id was not found. Raised with message
_ERR_NUMBER_FORMAT_EXCEPTION if contract Id or store Id is not in the correct
format (number).AddJobCmdImpl.setRequestProperties(TypedProperty)public void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.scheduler.commands.AddJobCmdImplcom.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_CONTRACT_ALREADY_DEPLOY_TO_THE_STORE if the contract
has been deployed to the store. Raised with message _ERR_WRONG_CONTRACT_STATE if the contract
is not in the desired state (normally, a Draft and Deploy Failed contract can be deployed).
Raised with message _ERR_CONTRACT_EXPIRED if the contract is expired. Raised with message
_ERR_INVALID_CONTRACT_EXPIRED_DATE if the expiration date of the contract is invalid.
Raised with message _ERR_CONTRACT_SYS_GENERIC when other unknown error occurs.com.ibm.commerce.exception.ECExceptionAddJobCmdImpl.validateParameters()