com.ibm.commerce.usermanagement.commands

Class OrgEntityRegistrationAddCheckApprovalCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.ubf.commands.EntryActionCmd, OrgEntityRegistrationAddCheckApprovalCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class OrgEntityRegistrationAddCheckApprovalCmdImpl
    extends TaskCommandImpl
    implements OrgEntityRegistrationAddCheckApprovalCmd
    This command is used to check if approval is needed for an organization registration.

    Behavior

    • Checks if approval is needed for an organization registration. Returns approval state. The implementation of the checkApproval() method always returns true (meaning that approval is always required). Therefore this command will always return the approval state PENDING APPROVAL.

    Exception Conditions

    • Not applicable
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        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.
        Specified by:
        getEventIdentifier in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Returns:
        String The event identifier.
        See Also:
        EntryActionCmd.getEventIdentifier()
      • setBusinessFlowEventData

        public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
        Sets the business flow event data
        Specified by:
        setBusinessFlowEventData in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Parameters:
        BusinessFlowEventData - The business flow event data.
        See Also:
        EntryActionCmd.setBusinessFlowEventData(BusinessFlowEventData)
      • setEntityId

        public void setEntityId(java.lang.Long anEntityId)
        Sets the entity id.
        Specified by:
        setEntityId in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Parameters:
        Long - The entity id.
        See Also:
        EntryActionCmd.setEntityId(Long)
      • setEntityObject

        public void setEntityObject(java.lang.Object anEntityObject)
        Sets the entity object.
        Specified by:
        setEntityObject in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Parameters:
        Object - Object of type OrgFlowEntityBean.
        See Also:
        EntryActionCmd.setEntityObject(Object)
      • reset

        public void reset()
        Description copied from class: AbstractECTargetableCommand
        This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
        See Also:
        Command.reset()
      • 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