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, wait
getApplicationType, 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, setUserRefNum
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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 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.ECCommand
getResources
in class com.ibm.commerce.scheduler.commands.AddJobCmdImpl
com.ibm.commerce.exception.ECException
AccessVector
public 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.ECCommand
performExecute
in class com.ibm.commerce.scheduler.commands.AddJobCmdImpl
com.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 ContractDeployCmd
contractId
- 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.ControllerCommand
setRequestProperties
in class com.ibm.commerce.scheduler.commands.AddJobCmdImpl
aRequestProperties
- 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.ECCommand
validateParameters
in class com.ibm.commerce.scheduler.commands.AddJobCmdImpl
com.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.ECException
AddJobCmdImpl.validateParameters()