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:

Exception:


Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 java.lang.String productSetXml
          The product set XML definition.
 
Fields inherited from class com.ibm.commerce.contract.commands.DeployTCCmdImpl
abTC
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.productset.commands.DeployProductSetTCCmd
defaultCommandClassName, NAME
 
Constructor Summary
DeployProductSetTCCmdImpl()
          No value constructor.
 
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.contract.commands.DeployTCCmdImpl
getTargetStoreId, setTargetStoreId, setTermCondition
 
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.contract.commands.DeployTCCmd
getTargetStoreId, setTargetStoreId, setTermCondition
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

productSetXml

public java.lang.String productSetXml
The product set XML definition.
Constructor Detail

DeployProductSetTCCmdImpl

public DeployProductSetTCCmdImpl()
No value constructor.
Method Detail

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