public class ControlRuleListBeanCmdImpl extends DataBeanCommandImpl implements ControlRuleListBeanCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
emptyString, EURO_CODE
defaultCommandClassName, NAME
Constructor and Description |
---|
ControlRuleListBeanCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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 targetable command framework.
|
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 matching ownerId
- a list of all rules
|
void |
populateDataBeanCommand(InputDataBean aDataBean)
Gets input data (OwnerId, RuleType, or RuleName) from
ControlRuleListBean
|
void |
reset()
Resets the bean.
|
void |
setControlRule(ControlRuleAccessBean newControlRuleAccessBean)
Provides an access bean instance for returning an element from the list.
|
void |
setOwnerId(java.lang.Long newOwnerId)
Sets the owner ID 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 rule type used by the finder methods to populate the list.
|
getDataBean, setDataBean
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public 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
true
.isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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 interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setControlRule(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