com.ibm.commerce.negotiation.commands
Class ModifyBidRuleCmdImpl
com.ibm.commerce.negotiation.commands.ModifyBidRuleCmdImpl
- All Implemented Interfaces:
- AccCommand, BidRuleBaseCmd, ControllerCommand, ECCommand, ModifyBidRuleCmd, Protectable, ToolsControllerCommand
- public class ModifyBidRuleCmdImpl
- implements ModifyBidRuleCmd
Modifies a bid control rule.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
ModifyBidRuleCmdImpl
public ModifyBidRuleCmdImpl()
- ModifyBidRuleCmdImpl constructor.
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
- Returns:
- AccessVector - a vector of resource action pairs
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Verifies that the this command is ready to be executed.
- Returns:
- boolean true if command is ready, otherwise false.
modifyBidRuleRequestProperties
public void modifyBidRuleRequestProperties()
- Updates request properties to reflect the modified bid rule.
performExecute
public void performExecute()
throws ECException
- Creates a bid rule.
- Specified by:
performExecute
in interface ECCommand
- Throws:
ECException
-
setRequestProperties
public void setRequestProperties(TypedProperty param)
throws ECApplicationException
- Copies key-value input data into member fields.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Parameters:
param
- com.ibm.commerce.datatype.TypedProperty- Throws:
ECApplicationException
-
validateParameters
public void validateParameters()
throws ECApplicationException
- Validates parameters.
- Specified by:
validateParameters
in interface ECCommand
- Throws:
ECApplicationException
-