public class CalculationCodeQualifyCmdImpl extends CalculationCmdImpl implements CalculationCodeQualifyCmd
The default implementation of CalculationCodeQualifyCmd
.
It returns all items as qualified if the current user is in at least one of the member groups associated with the calculation code (see CALCODEMGP). The current user is in a member group if the following conditions are met:
CheckCurrentUserInMemberGroupCmd
returns true.CalculationHelper.isCurrentUserInMemberGroup(Long, CommandContext)
.
Commands used:
CheckCurrentUserInMemberGroupCmd
OrderItemAccessBean
CalculationCodeAccessBean
CalculationCodeMemberGroupAccessBean
RecognizedMemberGroupAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CalculationCodeQualifyCmdImpl()
Constructor for CalculationCodeQualifyCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
Item[] |
getQualifiedItems()
Returns the qualified items.
|
void |
performExecute()
This method performs the business logic for this command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.
|
void |
setItems(Item[] aItems)
Sets the items.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
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 CalculationCodeQualifyCmdImpl()
public Item[] getQualifiedItems()
getQualifiedItems
in interface CalculationCodeQualifyCmd
public void performExecute() throws ECException
AbstractECTargetableCommand
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand.performExecute()
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class CalculationCmdImpl
Command.reset()
public void setCode(CalculationCodeAccessBean aabCode)
setCode
in interface CalculationCodeQualifyCmd
aabCode
- the calculation code.public void setItems(Item[] aItems)
setItems
in interface CalculationCodeQualifyCmd
aItems
- the items.