com.ibm.commerce.contract.tc.commands
Class ContractTCDeployCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.command.AsyncControllerCommandImpl
com.ibm.commerce.contract.tc.commands.ContractTCDeployCmdImpl
- All Implemented Interfaces:
- AccCommand, AsyncCommand, ContractTCDeployCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class ContractTCDeployCmdImpl
- extends AsyncControllerCommandImpl
- implements ContractTCDeployCmd
Deploys the specified terms and conditions (WebSphere Commerce Business Edition only). This is the default implementation of ContractTCDeployCmd.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Method Summary |
java.lang.Long |
getContractId()
Gets the ID of the contract to be updated. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
The method deploys the terms and conditions to the store. |
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(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. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
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 |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
ContractTCDeployCmdImpl
public ContractTCDeployCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.
-
- Specified by:
- getResources in interface ECCommand
- Overrides:
- getResources in class AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
- ECException
performExecute
public void performExecute()
throws ECException
- The method deploys the terms and conditions to the store.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
getContractId
public java.lang.Long getContractId()
- Gets the ID of the contract to be updated.
-
- Specified by:
- getContractId in interface ContractTCDeployCmd
-
- Returns:
- the ID of the contract to be updated.
setContractId
public void setContractId(java.lang.Long contractId)
- Sets the ID of the contract to be updated.
-
- Specified by:
- setContractId in interface ContractTCDeployCmd
-
- Parameters:
- contractId - The contract ID.
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Retrieves input parameters from the request properties.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class ControllerCommandImpl
-
- Parameters:
- aRequestProperties - An TypedProperty object contains the input parameters.
- Throws:
- ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER when contractId and the input xml string are missed.
setTCIds
public void setTCIds(java.lang.String[] tcIds)
- Sets the IDs of the terms and conditions to be deployed.
-
- Specified by:
- setTCIds in interface ContractTCDeployCmd
setRedirectURL
public void setRedirectURL(java.lang.String url)
- Sets the redirect URL.
-
- Specified by:
- setRedirectURL in interface ContractTCDeployCmd
-
- Parameters:
- url - The the redirect URL.
validateParameters
public void validateParameters()
throws ECException
- Validates if the contracts are in either Active or Suspended state.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.