com.ibm.commerce.contract.commands
Class DeployExtendedTCCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.contract.commands.DeployTCCmdImpl
-
- com.ibm.commerce.contract.commands.DeployExtendedTCCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, DeployExtendedTCCmd, DeployTCCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command
public class DeployExtendedTCCmdImpl extends DeployTCCmdImpl implements DeployExtendedTCCmd
The purpose of this command is to deploy an Extended Terms and Conditions.Input parameters:
Name Type Requirement Description terms and Conditions Term Condition Access Bean mandatory The Terms and Conditions. Behavior:
- Gets the Terms and Conditions ID from the input parameter.
- New an ExtendedAccessBean using the TC_ID.
- Get the tcSubType of the TC.
- Get the deployCommand using tcSubType of the TC and invoke it.
Exception:
- It throws an ECException when there are EJB exception threw.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The internal copyright field.-
Fields inherited from class com.ibm.commerce.contract.commands.DeployTCCmdImpl
CLASSNAME
-
Fields inherited from interface com.ibm.commerce.contract.commands.DeployExtendedTCCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description DeployExtendedTCCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getTermConditionId()
get the TermCondition Idvoid
performExecute()
Invoke prePerform() to get the ExtendedTermConditionAccessBean and get the tcSubType for the TC.void
setTermConditionId(java.lang.Long termConditionId)
Set the TermCondition Id-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.ibm.commerce.contract.commands.DeployTCCmdImpl
getTargetStoreId, setTargetStoreId, setTermCondition
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.contract.commands.DeployTCCmd
getTargetStoreId, setTargetStoreId, setTermCondition
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The internal copyright field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTermConditionId
public java.lang.Long getTermConditionId()
get the TermCondition Id- Specified by:
getTermConditionId
in interfaceDeployExtendedTCCmd
- Returns:
- return the TERMCOND_ID which will be deployed.
-
performExecute
public void performExecute() throws com.ibm.commerce.exception.ECException
Invoke prePerform() to get the ExtendedTermConditionAccessBean and get the tcSubType for the TC. Then, get the deployCommand using tcSubType of the TC and invoke it.- Specified by:
performExecute
in interfacecom.ibm.commerce.command.ECCommand
- Overrides:
performExecute
in classcom.ibm.commerce.command.AbstractECTargetableCommand
- Throws:
com.ibm.commerce.exception.ECException
- threw ECException if there are exception threw when initial ExtendedTermConditionAccessBean.
-
setTermConditionId
public void setTermConditionId(java.lang.Long termConditionId)
Set the TermCondition Id- Specified by:
setTermConditionId
in interfaceDeployExtendedTCCmd
- Parameters:
termConditionId
- is the TERMCOND_ID for the TermCondition which will be deployed.
-
-