com.ibm.commerce.negotiation.bean.commands
Class SealedBidControlRuleBeanCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.DataBeanCommandImpl
|
+--com.ibm.commerce.negotiation.bean.commands.SealedBidControlRuleBeanCmdImpl
- All Implemented Interfaces:
- DataBeanCommand, ECCommand, ECTargetableCommand, SealedBidControlRuleBeanCmd
- public class SealedBidControlRuleBeanCmdImpl
- extends DataBeanCommandImpl
- implements SealedBidControlRuleBeanCmd
This class will populate data for SealedBidControlRuleDataBean.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
bidControlRuleId
protected java.lang.Integer bidControlRuleId
controlRuleAccessBean
protected ControlRuleAccessBean controlRuleAccessBean
SealedBidControlRuleBeanCmdImpl
public SealedBidControlRuleBeanCmdImpl()
- Creates an instance of OpenCryBidRuleControlBeanCmdImpl, default constructor.
copy
protected static void copy(DataBeanCommandImpl cmd,
ControlRuleAccessBean rule,
SealedBidControlRuleDataBean ruleBean)
- Populates a rule bean.
- Parameters:
cmd
- data inherited from the superclass.rule
- data to be copied from the access bean.ruleBean
- data bean to be populated.
copyBidRuleFields
protected static void copyBidRuleFields(DataBeanCommand cmd,
ControlRuleAccessBean rule,
SealedBidControlRuleDataBean ruleBean)
- Copy data from ControlRuleAccessBean to SealedBidControlRuleDataBean.
- Parameters:
param
- com.ibm.commerce.command.DataBeanCommandrule
- com.ibm.commerce.negotiation.objects.ControlRuleAccessBeanruleBean
- com.ibm.commerce.negotiation.beans.SealedBidControlRuleDataBean
getBidControlRule
public ControlRuleAccessBean getBidControlRule()
- Returns the access bean manipulated by the command.
- Returns:
- com.ibm.commerce.negotiation.objects.ControlRuleAccessBean
getBidControlRuleId
public java.lang.Integer getBidControlRuleId()
- Returns the control rule id.
- Returns:
- java.lang.Integer
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Always returns 'true'.
- Overrides:
isReadyToCallExecute
in class AbstractECTargetableCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECTargetableCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Uses the access bean to lookup a control rule, then populates
its associated rule interpreter data bean.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Throws:
ECException
- when data bean could not be populated.
performSecurityCheck
public boolean performSecurityCheck()
- Always returns 'false' (does nothing).
populateDataBeanCommand
public void populateDataBeanCommand(InputDataBean aDataBean)
- Obtains the bid control rule id fromthe data bean.
- Overrides:
populateDataBeanCommand
in class DataBeanCommandImpl
- Parameters:
aDataBean
- input data bean.
reset
public void reset()
- Does nothing.
- Overrides:
reset
in class AbstractECTargetableCommand
setBidRuleControl
public void setBidRuleControl(ControlRuleAccessBean aRule)
- Provides an access bean for manipulation by the class.
- Specified by:
setBidRuleControl
in interface SealedBidControlRuleBeanCmd
- Parameters:
aRule
- com.ibm.commerce.negotiation.objects.ControlRuleAccessBean
setBidRuleControlId
public void setBidRuleControlId(java.lang.Integer Id)
- Sets the bid control rule id field.
- Specified by:
setBidRuleControlId
in interface SealedBidControlRuleBeanCmd
- Parameters:
Id
- java.lang.Integer
setRequestProperties
public void setRequestProperties(TypedProperty properties)
- Obtains command parameters from TypedProperty; current implementation does nothing.
- Specified by:
setRequestProperties
in interface DataBeanCommand
- Overrides:
setRequestProperties
in class DataBeanCommandImpl
- Parameters:
properties
- com.ibm.commerce.datatype.TypedProperty