com.ibm.commerce.usermanagement.commands
Class UserRegistrationAddCheckApprovalCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.usermanagement.commands.UserRegistrationAddCheckApprovalCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, TaskCommand, UserRegistrationAddCheckApprovalCmd

public class UserRegistrationAddCheckApprovalCmdImpl
extends TaskCommandImpl
implements UserRegistrationAddCheckApprovalCmd

This command is a EntryAction command called by UBF to check if the user registration approval is required.

The current logic is: If the parameter parentMember is not specified, no approval is required.
If the parameter parentMember is specified, approval is required.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this implementation of the command.
static java.lang.String COPYRIGHT
          IBM Copyright notice field.
protected  BusinessFlowEventData eventData
          The event data.
protected  java.lang.String eventIdentifier
          The event identifier.
protected  UserFlowEntityBean userFlowEntityBean
          The user flow entity bean.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.usermanagement.commands. UserRegistrationAddCheckApprovalCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
UserRegistrationAddCheckApprovalCmdImpl()
           
 
Method Summary
 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.
 
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, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
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
IBM Copyright notice field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this implementation of the command.
See Also:
Constant Field Values

userFlowEntityBean

protected UserFlowEntityBean userFlowEntityBean
The user flow entity bean.

eventIdentifier

protected java.lang.String eventIdentifier
The event identifier.

eventData

protected BusinessFlowEventData eventData
The event data.
Constructor Detail

UserRegistrationAddCheckApprovalCmdImpl

public UserRegistrationAddCheckApprovalCmdImpl()
Method Detail

checkApproval

public boolean checkApproval()
                      throws ECException
Returns whether to check for approvals.
Returns:
True if the parent member is specified, otherwise false.
ECException

getEventIdentifier

public java.lang.String getEventIdentifier()
Returns the event identifier.
Returns:
The event identifier.

performExecute

public void performExecute()
                    throws ECException
Determines whether the user need to be approved or not.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - this should not happen.

reset

public void reset()
Sets the command parameters so that the command can be reused.
Overrides:
reset in class AbstractECTargetableCommand

setBusinessFlowEventData

public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
Sets the business flow event data.
Parameters:
anEventData - the business flow event data.

setEntityId

public void setEntityId(java.lang.Long anEntityId)
Sets the entity identifier.
Parameters:
anEntityId - the entity identifier.

setEntityObject

public void setEntityObject(java.lang.Object anEntityObject)
Sets the entity object.
Parameters:
anEntityObject - the entity object.

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - will never happen since no validation is needed.