com.ibm.commerce.usermanagement.commands
Class OrgEntityRegistrationAddCheckApprovalCmdImpl

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

public class OrgEntityRegistrationAddCheckApprovalCmdImpl
extends TaskCommandImpl
implements OrgEntityRegistrationAddCheckApprovalCmd

This command is used to check if approval is needed for an organization registration.

Behavior

Exception Conditions

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.usermanagement.commands. OrgEntityRegistrationAddCheckApprovalCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
OrgEntityRegistrationAddCheckApprovalCmdImpl()
          Constructor for OrgEntityRegistrationAddCheckApprovalCmdImpl.
 
Method Summary
 boolean checkApproval()
          Checks if approval is needed for the organization.
 java.lang.String getEventIdentifier()
          Gets the event identifier.
 void performExecute()
          Executes the command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setBusinessFlowEventData(BusinessFlowEventData anEventData)
          Sets the business flow event data
 void setEntityId(java.lang.Long anEntityId)
          Sets the entity id.
 void setEntityObject(java.lang.Object anEntityObject)
          Sets the entity object.
 void validateParameters()
          Performs parameter checking.
 
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
Constructor Detail

OrgEntityRegistrationAddCheckApprovalCmdImpl

public OrgEntityRegistrationAddCheckApprovalCmdImpl()
Constructor for OrgEntityRegistrationAddCheckApprovalCmdImpl.
Method Detail

getEventIdentifier

public java.lang.String getEventIdentifier()
Gets the event identifier.
Returns:
String The event identifier.
See Also:
com.ibm.commerce.ubf.commands.EntryActionCmd#getEventIdentifier()

setBusinessFlowEventData

public void setBusinessFlowEventData(BusinessFlowEventData anEventData)
Sets the business flow event data
See Also:
com.ibm.commerce.ubf.commands.EntryActionCmd#setBusinessFlowEventData(BusinessFlowEventData)

setEntityId

public void setEntityId(java.lang.Long anEntityId)
Sets the entity id.
See Also:
com.ibm.commerce.ubf.commands.EntryActionCmd#setEntityId(Long)

setEntityObject

public void setEntityObject(java.lang.Object anEntityObject)
Sets the entity object.
See Also:
com.ibm.commerce.ubf.commands.EntryActionCmd#setEntityObject(Object)

performExecute

public void performExecute()
                    throws ECException
Executes the command. Will set the eventIdentifier based on whether or not approval is required for the organization.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.performExecute()

reset

public void reset()
Description copied from class: AbstractECTargetableCommand
This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECTargetableCommand
See Also:
com.ibm.sfc.cmd.Command#reset()

validateParameters

public void validateParameters()
                        throws ECException
Description copied from class: AbstractECTargetableCommand
Performs parameter checking. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand.validateParameters()

checkApproval

public boolean checkApproval()
                      throws ECException
Checks if approval is needed for the organization. Always returns true, meaning that approval is always required.
Returns:
boolean
Throws:
ECException