com.ibm.commerce.productset.commands
Class DeployProductSetTCCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.contract.commands.DeployTCCmdImpl
|
+--com.ibm.commerce.productset.commands.DeployProductSetTCCmdImpl
- All Implemented Interfaces:
- DeployProductSetTCCmd, DeployTCCmd, ECCommand, TaskCommand
- public class DeployProductSetTCCmdImpl
- extends DeployTCCmdImpl
- implements DeployProductSetTCCmd
Deploy a standard product set term and condition.
Behavior:
- Gets the term and condition ID from the DeployTCCmd command.
- Finds the business policy from the term and condition object.
- Finds the product set from the business policy object.
- Sets the product set ID to the term and condition object.
Exception:
- It throws an ECApplicationException with the message key _ERR_ENTITY_OBJECT_NOT_FOUND, if can not find the policy or product set.
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
java.lang.String |
productSetXml
The product set XML definition. |
Method Summary |
java.lang.Integer |
getProductSetId()
Returns the Product Set ID. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setProductSetId(java.lang.Integer newPsId)
Sets the Product Set ID. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
productSetXml
public java.lang.String productSetXml
- The product set XML definition.
DeployProductSetTCCmdImpl
public DeployProductSetTCCmdImpl()
- No value constructor.
getProductSetId
public java.lang.Integer getProductSetId()
- Returns the Product Set ID.
- Returns:
- java.lang.Integer
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 AbstractECCommand
- Returns:
- AccessVector - a vector of resource action pairs
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setProductSetId
public void setProductSetId(java.lang.Integer newPsId)
- Sets the Product Set ID.
- Parameters:
newPsId
- java.lang.Integer