public class UserRegistrationAddCheckApprovalCmdImpl extends TaskCommandImpl implements UserRegistrationAddCheckApprovalCmd
The current logic is:
If the parameter parentMember is not specified, no approval is required.
If the parameter parentMember is specified, approval is required.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this implementation of the command.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
NAME
Constructor and Description |
---|
UserRegistrationAddCheckApprovalCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkApproval()
Returns whether to check for approvals.
|
java.lang.String |
getEventIdentifier()
Returns the event identifier.
|
void |
performExecute()
Determines whether the user need to be approved or not.
|
void |
reset()
Sets the command parameters so that the command can be reused.
|
void |
setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
Sets the business flow event data.
|
void |
setEntityId(java.lang.Long anEntityId)
Sets the entity identifier.
|
void |
setEntityObject(java.lang.Object anEntityObject)
Sets the entity object.
|
void |
validateParameters()
Validates the parameters.
|
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
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
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
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public UserRegistrationAddCheckApprovalCmdImpl()
public boolean checkApproval() throws ECException
ECException
public java.lang.String getEventIdentifier()
getEventIdentifier
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- this should not happen.public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
setBusinessFlowEventData
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEventData
- the business flow event data.public void setEntityId(java.lang.Long anEntityId)
setEntityId
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEntityId
- the entity identifier.public void setEntityObject(java.lang.Object anEntityObject)
setEntityObject
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEntityObject
- the entity object.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- will never happen since no validation is needed.