com.ibm.commerce.negotiation.commands
Class ModifyBidRuleCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
                          |
                          +--com.ibm.commerce.negotiation.commands.BidRuleBaseCmdImpl
                                |
                                +--com.ibm.commerce.negotiation.commands.ModifyBidRuleCmdImpl
All Implemented Interfaces:
AccCommand, BidRuleBaseCmd, ControllerCommand, ECCommand, ECTargetableCommand, ModifyBidRuleCmd, ToolsControllerCommand

public class ModifyBidRuleCmdImpl
extends BidRuleBaseCmdImpl
implements ModifyBidRuleCmd

Modifies a bid control rule.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright statement.
 
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.negotiation.commands. ModifyBidRuleCmd
defaultCommandClassName, NAME
 
Constructor Summary
ModifyBidRuleCmdImpl()
          ModifyBidRuleCmdImpl constructor.
 
Method Summary
  AccessVector getResources()
          Gets the access vector accessed by this command.
 boolean isReadyToCallExecute()
          Verifies that the this command is ready to be executed.
 void modifyBidRuleRequestProperties()
          Updates request properties to reflect the modified bid rule.
 void performExecute()
          Creates a bid rule.
 void setRequestProperties( TypedProperty param)
          Copies key-value input data into member fields.
 void validateParameters()
          Validates parameters.
 
Methods inherited from class com.ibm.commerce.negotiation.commands. BidRuleBaseCmdImpl
getClassId, getErrorContent, getErrorFlag, getField1, getField2, getField3, getMinQty, getMinValue, getOwnerId, getRuleDesc, getRuleId, getRuleName, getRuleText, getRuleType, getToolXMLObject, setClassId, setErrorContent, setErrorFlag, setField1, setField2, setField3, setMinQty, setMinValue, setOwnerId, setRuleDesc, setRuleId, setRuleName, setRuleText, setRuleType, setToolXMLObject
 
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl
getViewInputProperties
 
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, 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, 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
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

ModifyBidRuleCmdImpl

public ModifyBidRuleCmdImpl()
ModifyBidRuleCmdImpl constructor.
Method Detail

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
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECApplicationException - is raised with message _ERR_BAD_PARMS and the class name.
ECException

isReadyToCallExecute

public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.
Overrides:
isReadyToCallExecute in class BidRuleBaseCmdImpl
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
Overrides:
performExecute in class BidRuleBaseCmdImpl
Throws:
ECException

setRequestProperties

public void setRequestProperties(TypedProperty param)
                          throws ECApplicationException
Copies key-value input data into member fields.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class BidRuleBaseCmdImpl
Parameters:
param - com.ibm.commerce.datatype.TypedProperty
Throws:
ECApplicationException

validateParameters

public void validateParameters()
                        throws ECApplicationException
Validates parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException