psdi.app.system

Class TenantStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class TenantStatusHandler
    extends StatusHandler
    Handles all the status changes for a tenant registration object.
    • Constructor Detail

      • TenantStatusHandler

        public TenantStatusHandler(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
        Changes the status from the current state to a desired state. Also reloads the tenant's entry in the tenant cache since this status change may have impacted login ability.
        Overrides:
        changeStatus in class StatusHandler
        Parameters:
        currentStatus - the tenant's current status
        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
        Defines which status changes are legal. If a status change is not legal, an exception is thrown. This method does not check the user's security clearance.
        Overrides:
        canChangeStatus in class StatusHandler
        Parameters:
        currentStatus - The tenant's current status
        desiredStatus - The status to change to. This is the synonym value.
        accessModifier - Ignored
        Throws:
        MXException - Throws an MXApplicationException if the desired status is New.
        java.rmi.RemoteException
      • checkUserSecurity

        public void checkUserSecurity(java.lang.String desiredMaxStatus)
                               throws MXException,
                                      java.rmi.RemoteException
        Confirm the users security rights to call the specified status. Note the status passed in is the INTERNAL status code.
        Note that the SigOption Option Name doesn't always match the status name.
        Parameters:
        desiredMaxStatus - The status to check if we can change to.
        Throws:
        MXAccessException - Throws an access exception "notauthorized" if the check fails.
        MXException
        java.rmi.RemoteException