psdi.security

Class AdminModeManager

  • java.lang.Object
    • psdi.security.AdminModeManager
    • Field Detail

      • ADMIN_ON

        public static java.lang.String ADMIN_ON
        Value for reloadCache key to turn on Admin Mode.
      • ADMIN_OFF

        public static java.lang.String ADMIN_OFF
        Value for reloadCache key to turn off Admin Mode.
      • ADMIN_CANCEL

        public static java.lang.String ADMIN_CANCEL
        Value for reloadCache key to cancel a request for Admin Mode.
      • ADMIN_LOGOUTMIN

        public static java.lang.String ADMIN_LOGOUTMIN
        Value for reloadCache key change Lotout Minutes for pending Admin Mode.
    • Constructor Detail

      • AdminModeManager

        public AdminModeManager()
    • Method Detail

      • isAdminModeOnThisInstance

        public boolean isAdminModeOnThisInstance()
        Identifies whether this instance is in Admin Mode.
        Returns:
        True if in Admin Mode, else False.
      • isAdminModePendingThisInstance

        public boolean isAdminModePendingThisInstance()
        Identifies whether this instance is entering Admin Mode. The variable adminModePending identifies whether the instance is entering Admin Mode. The variable adminMode identifies whether Admin Mode is fully accomplished.
        Returns:
        True if entering Admin Mode, else False.
      • isAdminModeTurningOffThisInstance

        public boolean isAdminModeTurningOffThisInstance()
        Identifies whether Admin Mode is in the middle of being turned off for this instance. The variable adminModeTurningOff identifies whether the instance is Admin Mode is being turned off. The variable adminMode identifies whether Admin Mode is fully accomplished.
        Returns:
        True if Admin Mode is in the process of being turned off, else False.
      • isAdminModeForAllInstances

        public boolean isAdminModeForAllInstances(boolean activeVal)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Check whether Admin Mode has the value specified for all instances of MXServer sharing this database.
        Parameters:
        activeVal - True to check whether Admin Mode is ON for all instances. False to check whether Admin Mode is OFF for all instances.
        Returns:
        True if all instances have the value of Admin Mode specified in the input parameter.
        Throws:
        MXException
        java.rmi.RemoteException
      • listenToAdmin

        public void listenToAdmin(MboRemote listenerMbo,
                                  boolean listen)
                           throws MXException,
                                  java.rmi.RemoteException
        Register another listener for Admin Mode change.
        Parameters:
        listenerMbo - ProcessMonitor mbo.
        listen - True to start listening, False to stop listening
        Throws:
        MXException
        java.rmi.RemoteException
      • clearListeners

        public void clearListeners()
        Clear adminListeners.
      • isTenantAdminMode

        public boolean isTenantAdminMode()
      • setTenantAdminMode

        public void setTenantAdminMode(boolean tenantAdminMode)