com.ibm.commerce.usermanagement.commands

Class UserRegistrationAddCheckApprovalCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.ubf.commands.EntryActionCmd, UserRegistrationAddCheckApprovalCmd, 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 UserRegistrationAddCheckApprovalCmdImpl
    extends TaskCommandImpl
    implements UserRegistrationAddCheckApprovalCmd
    This command is an 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 Detail

      • COPYRIGHT

        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
    • 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.
        Throws:
        ECException
      • getEventIdentifier

        public java.lang.String getEventIdentifier()
        Returns the event identifier.
        Specified by:
        getEventIdentifier in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Returns:
        The event identifier.
      • reset

        public void reset()
        Sets the command parameters so that the command can be reused.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • 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:
        anEventData - the business flow event data.
      • setEntityId

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

        public void setEntityObject(java.lang.Object anEntityObject)
        Sets the entity object.
        Specified by:
        setEntityObject in interface com.ibm.commerce.ubf.commands.EntryActionCmd
        Parameters:
        anEntityObject - the entity object.