Class BusinessContextServiceLogonCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, BusinessContextServiceLogonCmd, LogonCmd, Protectable,,,,,,

    public class BusinessContextServiceLogonCmdImpl
    extends LogonCmdImpl
    implements BusinessContextServiceLogonCmd

    This controller command authenticates a user into the system from the Business Context Service Engine. This command is similar to the logic in LogonCmd with the following exception. Unlike the LogonCmd, this command does not migrate the resources from a guest shopper and does not update the command context.

    Before executing this command, the methods listed below must be invoked

    • setLogonId
    • setPassword
    When an error occurs due to any reason, error codes are returned back in the response properties.
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        The copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BusinessContextServiceLogonCmdImpl

        public BusinessContextServiceLogonCmdImpl()
    • Method Detail

      • validateParameters

        public void validateParameters()
                                throws ECException
        This method validates that the parameters, logonID and logonPassword are specified. Also ensures that the logonID exists in the system, and that the password satisfies all defined policies.
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class LogonCmdImpl
      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the command. First, it ensures that all parameters are valid. It then sets up the required parameters by LogonCmd. Finally, it executes LogonCmd. The logic for validation is as follows:
        1. Check whether the account is enabled.
        2. Check whether the user is allowed to logon at the current time.
        3. Check if the users password is correct for the user.
        4. Check if the user is approved.
        5. Check if any of the parent organizations are locked.
        Next, reassign the default roles if logging on from LDAP. In this particular logon command, we do not need to migrate the user's resources and update the command context.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class LogonCmdImpl