java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.DataBeanCommandImpl | +--com.ibm.commerce.negotiation.bean.commands.ControlRuleListBeanCmdImpl
This class will fetch an array of ControlRuleDataBean for ControlRuleListBean This command uses the following AccessBeans:
ControlRuleAccessBean
InputDataBean
ControlRuleDataBean
ControlRuleListBean
Field Summary | |
---|---|
protected
com.ibm.commerce.negotiation.objects.ControlRuleAccessBean |
controlRuleAccessBean Instance variable to store a access bean. |
static java.lang.String |
COPYRIGHT Copyright statement. |
protected
java.lang.Long |
ownerId Instance variable to store ownerId used for list population |
protected
java.lang.String |
ruleName Instance variable to store the rule name. |
protected
java.lang.String |
ruleType Instance variable to store the control rule type used for list population |
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. ControlRuleListBeanCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ControlRuleListBeanCmdImpl() |
Method Summary | |
---|---|
com.ibm.commerce.negotiation.objects.ControlRuleAccessBean |
getControlRule() Fetches a ControlRule from the list. |
java.lang.Long |
getOwnerId() Fetches the ownerId used for list population. |
java.lang.String |
getRuleName() Fetches the control rule name used for list population. |
java.lang.String |
getRuleType() Fetches the control rule type used for list population. |
boolean |
isReadyToCallExecute() This method is called by the Targettable Command frame work before the execution of the command. |
void |
performExecute() Populates a list of control rules matching specific criteria, in the following precedence: - by match on both the ownerId and ruleType - by match on both the ownerId and ruleName - by macthing ownerId - a list of all rules |
void |
populateDataBeanCommand(
InputDataBean aDataBean) Get input data (OwnerId, RuleType, or RuleName) from ControlRuleListBean |
void |
reset() Resets the bean. |
void |
setControlRule(com.ibm.commerce.negotiation.objects.ControlRuleAccessBean newControlRuleAccessBean) Provides an access bean instance for returning an element from the list. |
void |
setOwnerId(java.lang.Long newOwnerId) Sets the ownerId used by the finder methods to populate the list. |
void |
setRequestProperties(
TypedProperty properties) Obtains command parameters from TypedProperty; current implementation does nothing. |
void |
setRuleName(java.lang.String newRuleName) Sets the rule name used by the finder method to populate the list. |
void |
setRuleType(java.lang.String newRuleType) Sets the ruleType used by the finder methods to populate the list. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.Long ownerId
protected java.lang.String ruleType
protected com.ibm.commerce.negotiation.objects.ControlRuleAccessBean controlRuleAccessBean
protected java.lang.String ruleName
Constructor Detail |
---|
public ControlRuleListBeanCmdImpl()
Method Detail |
---|
public com.ibm.commerce.negotiation.objects.ControlRuleAccessBean getControlRule()
getControlRule
in interface
ControlRuleListBeanCmd
public java.lang.Long getOwnerId()
public java.lang.String getRuleName()
public java.lang.String getRuleType()
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- This exception is allowed to percolate.public void populateDataBeanCommand(InputDataBean aDataBean)
populateDataBeanCommand
in class
DataBeanCommandImpl
aDataBean
- The ControlRuleListBeanpublic void reset()
reset
in class
AbstractECTargetableCommand
public void setControlRule(com.ibm.commerce.negotiation.objects.ControlRuleAccessBean newControlRuleAccessBean)
newControlRuleAccessBean
-
com.ibm.commerce.negotiation.objects.ControlRuleAccessBeanpublic void setOwnerId(java.lang.Long newOwnerId)
setOwnerId
in interface
ControlRuleListBeanCmd
newOwnerId
- Longpublic void setRequestProperties(TypedProperty properties)
setRequestProperties
in interface
DataBeanCommand
setRequestProperties
in class
DataBeanCommandImpl
properties
-
com.ibm.commerce.datatype.TypedPropertypublic void setRuleName(java.lang.String newRuleName)
setRuleName
in interface
ControlRuleListBeanCmd
newRuleName
- java.lang.Stringpublic void setRuleType(java.lang.String newRuleType)
setRuleType
in interface
ControlRuleListBeanCmd
newRuleType
- java.lang.String