com.ibm.commerce.tools.promotions
Class PromotionChooseCmdImpl

java.lang.Object
  CacheableCommandImpl
      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. AccessBean used within the implementation: CatalogEntryCalculationCodeAccessBean,CalculationCodeAccessBean, StoreCatalogEntryAccessBean.

See Also:
Serialized Form

Field Summary
protected java.lang.String calCode_Id
calCode id of the discount
protected CalculationCodeAccessBean calcodeAB
calcodeAccessBean object
protected java.util.Vector catentryIdList
catentryID list
static java.lang.String COPYRIGHT
IBM Copyright
protected java.lang.String xmlFile
xml file needed
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()
PromotionChooseCmdImpl constructor
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
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, 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.ControllerCommand
checkPermission, 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, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM Copyright
See Also:
Constant Field Values

xmlFile

protected java.lang.String xmlFile
xml file needed

calCode_Id

protected java.lang.String calCode_Id
calCode id of the discount

catentryIdList

protected java.util.Vector catentryIdList
catentryID list

calcodeAB

protected CalculationCodeAccessBean calcodeAB
calcodeAccessBean object
Constructor Detail

PromotionChooseCmdImpl

public PromotionChooseCmdImpl()
PromotionChooseCmdImpl constructor
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.
Throws:
ECException

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.

Feedback