com.ibm.commerce.tools.promotions
Class PromotionChooseCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.tools.promotions.PromotionChooseCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PromotionChooseCmd, Protectable, ToolsControllerCommand

public class PromotionChooseCmdImpl
extends ToolsControllerCommandImpl
implements PromotionChooseCmd

The PromotionChooseCmdImpl class implements the PromotionChooseCmd interface to provide the controller command that chooses discounts for current product.


Field Summary
protected  java.lang.String calCode_Id
           
protected  CalculationCodeAccessBean calcodeAB
           
protected  java.util.Vector catentryIdList
           
static java.lang.String COPYRIGHT
           
protected  java.lang.String xmlFile
           
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.promotions.PromotionChooseCmd
defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
 
Constructor Summary
PromotionChooseCmdImpl()
           
 
Method Summary
 AccessVector getResources()
          This method is using for Access Control.
 void performExecute()
          Called when the marketing manager choose one or more discounts for selected product.
 void validateParameters()
          Parameters validation.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties, setRequestProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

calCode_Id

protected java.lang.String calCode_Id

calcodeAB

protected CalculationCodeAccessBean calcodeAB

catentryIdList

protected java.util.Vector catentryIdList

COPYRIGHT

public static final java.lang.String COPYRIGHT

xmlFile

protected java.lang.String xmlFile
Constructor Detail

PromotionChooseCmdImpl

public PromotionChooseCmdImpl()
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
This method is using for Access Control.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
type AccessVector.

performExecute

public void performExecute()
                    throws ECException
Called when the marketing manager choose one or more discounts for selected product.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - The exception description.

validateParameters

public void validateParameters()
                        throws ECException
Parameters validation.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - If missing parameters.