com.ibm.commerce.discount.rules.commands
Class ProductLevelPolicyTaskCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.discount.rules.commands.ProductLevelPolicyTaskCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, ProductLevelPolicyTaskCmd, TaskCommand

public class ProductLevelPolicyTaskCmdImpl
extends TaskCommandImpl
implements ProductLevelPolicyTaskCmd

This is the default implementation of the ProductLevelPolicyTaskCmd

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.discount.rules.commands.ProductLevelPolicyTaskCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
ProductLevelPolicyTaskCmdImpl()
Constructor for ProductLevelPolicyTaskCmdImpl.
Method Summary
java.util.Vector getDiscounts()
Return a collection of discounts
java.util.Vector getSelectedDiscounts()
Return a collection of selected discounts.
void performExecute()
Command execution body
void setDiscounts(java.util.Vector discounts)
Set discounts value
void validateParameters()
Check the parameters.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, 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
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

ProductLevelPolicyTaskCmdImpl

public ProductLevelPolicyTaskCmdImpl()
Constructor for ProductLevelPolicyTaskCmdImpl.
Method Detail

validateParameters

public void validateParameters()
                        throws ECException
Check the parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

getDiscounts

public java.util.Vector getDiscounts()
Return a collection of discounts
Specified by:
getDiscounts in interface ProductLevelPolicyTaskCmd
Returns:
java.util.Vector

getSelectedDiscounts

public java.util.Vector getSelectedDiscounts()
Return a collection of selected discounts.
Specified by:
getSelectedDiscounts in interface ProductLevelPolicyTaskCmd
Returns:
java.util.Vector

performExecute

public void performExecute()
                    throws ECException
Command execution body
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#performExecute()

setDiscounts

public void setDiscounts(java.util.Vector discounts)
Set discounts value
Specified by:
setDiscounts in interface ProductLevelPolicyTaskCmd
Parameters:
discounts - java.util.Vector

Feedback