java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.DataBeanCommandImpl | +--com.ibm.commerce.negotiation.bean.commands.OpenCryBidControlRuleBeanCmdImpl
This class populates a OpenCryBidControlRuleDataBean. This command uses the following AccessBeans:
ControlRuleAccessBean
InputDataBean
OpenCryBidControlRuleDataBean
Field Summary | |
---|---|
protected
java.lang.Long |
bidControlRuleId Instance variable to store the bid control rule id. |
protected
com.ibm.commerce.negotiation.objects.ControlRuleAccessBean |
controlRuleAccessBean Instance variable to store the rule access bean. |
static java.lang.String |
COPYRIGHT Copyright statement. |
Fields inherited from class com.ibm.commerce.command. DataBeanCommandImpl |
dataBean,
emptyString,
EURO_CODE,
requestProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.bean.commands. OpenCryBidControlRuleBeanCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
OpenCryBidControlRuleBeanCmdImpl() Creates an instance of the command, default constructor. |
Method Summary | |
---|---|
protected
static void |
copy(
DataBeanCommandImpl cmd, ControlRuleAccessBean rule,
OpenCryBidControlRuleDataBean ruleBean) Populates a rule bean. |
protected
static void |
copyBidRuleFields(
DataBeanCommand cmd, ControlRuleAccessBean rule,
OpenCryBidControlRuleDataBean ruleBean) Populates an OpenCryControlRuleDataBean from an access bean and a DataBeanCommand. |
ControlRuleAccessBean |
getBidControlRule() Returns the control rule access bean. |
java.lang.Long |
getBidControlRuleId() Returns the bid control rule id. |
boolean |
isReadyToCallExecute() This method is called by the Targettable Command frame work before the execution of the command. |
void |
performExecute() Looks-up a specific open cry bid control rule, and populates the data bean with its contents. |
boolean |
performSecurityCheck() |
void |
populateDataBeanCommand(
InputDataBean aDataBean) Obtains the rule id from the input data bean. |
void |
reset() Resets the class; current implementation does nothing. |
void |
setBidRuleControl(ControlRuleAccessBean aRule) Sets the control rule access bean. |
void |
setBidRuleControlId(java.lang.Long Id) Sets the control rule id. |
void |
setRequestProperties(
TypedProperty properties) Obtains command parameters from TypedProperty; current implementation does nothing. |
Methods inherited from class com.ibm.commerce.command. DataBeanCommandImpl |
convertToString,
getDataBean,
setDataBean |
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,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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. DataBeanCommand |
getDataBean,
setDataBean |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.Long bidControlRuleId
protected com.ibm.commerce.negotiation.objects.ControlRuleAccessBean controlRuleAccessBean
Constructor Detail |
---|
public OpenCryBidControlRuleBeanCmdImpl()
Method Detail |
---|
protected static void copy(DataBeanCommandImpl cmd, ControlRuleAccessBean rule, OpenCryBidControlRuleDataBean ruleBean)
cmd
- data inherited from the superclass.rule
- data to be copied from the access bean.ruleBean
- data bean to be populated.protected static void copyBidRuleFields(DataBeanCommand cmd, ControlRuleAccessBean rule, OpenCryBidControlRuleDataBean ruleBean)
rule
-
com.ibm.commerce.negotiation.objects.ControlRuleAccessBeanruleBean
-
com.ibm.commerce.negotiation.beans.OpenCryBidRuleControlDataBeanpublic ControlRuleAccessBean getBidControlRule()
public java.lang.Long getBidControlRuleId()
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- when data bean could not be populated.public boolean performSecurityCheck()
public void populateDataBeanCommand(InputDataBean aDataBean)
populateDataBeanCommand
in class
DataBeanCommandImpl
aDataBean
- the data bean object to be
populated.public void reset()
reset
in class
AbstractECTargetableCommand
public void setBidRuleControl(ControlRuleAccessBean aRule)
setBidRuleControl
in interface
OpenCryBidControlRuleBeanCmd
aRule
-
com.ibm.commerce.negotiation.objects.ControlRuleAccessBeanpublic void setBidRuleControlId(java.lang.Long Id)
setBidRuleControlId
in interface
OpenCryBidControlRuleBeanCmd
Id
- java.long.Longpublic void setRequestProperties(TypedProperty properties)
setRequestProperties
in interface
DataBeanCommand
setRequestProperties
in class
DataBeanCommandImpl
properties
-
com.ibm.commerce.datatype.TypedProperty