psdi.security

Class ActiveUsersInfo

  • java.lang.Object
    • psdi.security.ActiveUsersInfo


  • public final class ActiveUsersInfo
    extends java.lang.Object
    Holds information about all users in MAXUSERMT table
    • Constructor Summary

      Constructors 
      Constructor and Description
      ActiveUsersInfo(java.lang.String loginId, java.lang.String tenantCode, int tenantid)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addUser(int id)
      Add new user
      java.util.List getAllTenantsForLoginID()
      Get all tenant codes for login id
      java.lang.String getTenantCode()
      Get tenant code
      int getTenantID()
      Get tenant id
      boolean hasTenant(int tenantid)
      Check if tenant exists for login id
      boolean isConsultantUser()
      Check if user have entries for multiple tenants
      protected boolean removeTenant(int tenantid)
      Remove tenant
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActiveUsersInfo

        public ActiveUsersInfo(java.lang.String loginId,
                               java.lang.String tenantCode,
                               int tenantid)
        Constructor
        Parameters:
        loginId - login id
        tenantCode - tenant code
        tenantid - tenant id
    • Method Detail

      • getTenantCode

        public java.lang.String getTenantCode()
        Get tenant code
        Returns:
        tenant code
      • addUser

        public void addUser(int id)
        Add new user
        Parameters:
        id - tenant id of the user
      • hasTenant

        public boolean hasTenant(int tenantid)
        Check if tenant exists for login id
        Parameters:
        id - tenant id of the user
        Returns:
        if tenant id exists
      • isConsultantUser

        public boolean isConsultantUser()
        Check if user have entries for multiple tenants
        Returns:
        true of more than one tenant id
      • getAllTenantsForLoginID

        public java.util.List getAllTenantsForLoginID()
                                               throws MXException,
                                                      java.rmi.RemoteException
        Get all tenant codes for login id
        Returns:
        list of tenant codes
        Throws:
        MXException
        java.rmi.RemoteException
      • removeTenant

        protected boolean removeTenant(int tenantid)
        Remove tenant
        Parameters:
        tenantid - tenant id of the tenant
        Returns:
        true if removed