psdi.app.signature

Class MaxUserStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class MaxUserStatusHandler
    extends StatusHandler
    Handles all the status changes for a MaxUserStatus object. Did not extend updateMboForStatus because any status change is OK and there's no special work to do on the Mbo.
    • Constructor Detail

      • MaxUserStatusHandler

        public MaxUserStatusHandler(StatefulMbo sm)
        Constructor
    • Method Detail

      • changeStatus

        public void changeStatus(java.lang.String currentStatus,
                                 java.lang.String desiredStatus,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Change the status from the current state to a desired state. If new status is ACTIVE, set failedlogins to 0.
        Overrides:
        changeStatus in class StatusHandler
        Parameters:
        currentStatus - The status now.
        desiredStatus - The status to change to.
        date - The date as of the status change is to be made.
        memo - Memo text.
        Throws:
        MXException
        java.rmi.RemoteException
      • canChangeStatus

        public void canChangeStatus(java.lang.String currentStatus,
                                    java.lang.String desiredStatus,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        If this is an internal process, allow anything. Otherwise, 1) cannot manually change user status to Deleted (must use menu option Delete User), 2) Cannot make user Active if the person is Inactive.
        Overrides:
        canChangeStatus in class StatusHandler
        Throws:
        MXException
        java.rmi.RemoteException