com.ibm.commerce.tools.promotions
Class PromotionPublishCmdImpl

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.PromotionPublishCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PromotionPublishCmd, Protectable, ToolsControllerCommand

public class PromotionPublishCmdImpl
extends ToolsControllerCommandImpl
implements PromotionPublishCmd

The PromotionPublishCmdImpl class implements the PromotionPublishCmd interface to provide the controller command that publishes a discount. Also this command provide unpublish and deletion funtions. AccessBean used within the implementation: CalculationCodeAccessBean.

See Also:
Serialized Form

Field Summary
protected java.lang.String calCode_Id
calcode id
protected CalculationCodeAccessBean calcodeAB
calcode AccessBean object
static java.lang.String COPYRIGHT
IBM Copyright
protected java.lang.Integer language_Id
language id
protected java.lang.String status
status
protected java.lang.Integer storeEnt_Id
store entity id
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.PromotionPublishCmd
defaultCommandClassName
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
Constructor Summary
PromotionPublishCmdImpl()
PromotionPublishCmdImpl constructor
Method Summary
AccessVector getResources()
This method is using for Access Control.
void performExecute()
Called when the marketing manager publish, un-publish or delete a discount
void validateParameters()
Parameter 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

status

protected java.lang.String status
status

storeEnt_Id

protected java.lang.Integer storeEnt_Id
store entity id

language_Id

protected java.lang.Integer language_Id
language id

calCode_Id

protected java.lang.String calCode_Id
calcode id

calcodeAB

protected CalculationCodeAccessBean calcodeAB
calcode AccessBean object
Constructor Detail

PromotionPublishCmdImpl

public PromotionPublishCmdImpl()
PromotionPublishCmdImpl 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 publish, un-publish or delete a discount
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - ECException

validateParameters

public void validateParameters()
                        throws ECException
Parameter Validation.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback