psdi.security

Class TenantRegCache

  • java.lang.Object
    • psdi.security.TenantRegCache
    • Constructor Detail

      • TenantRegCache

        public TenantRegCache()
    • Method Detail

      • reload

        public void reload()
                    throws MXException
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed. Don't call this method directly. Instead call MXServer.reloadCache(String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Initialize a specific component of the cache identified by the key. E.g. In Maxvars, a specific maxvar can be reinitiliazed from the database. Don't call this method directly. Instead call MXServer.reloadCache(String, String, boolean).
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key -
        Throws:
        MXException
      • getName

        public java.lang.String getName()
        Returns the name of the cache object. Should be unique within the app server. This name is used to uniquely identify the cache object among all cached object for both accessing the cache object as well as refreshing the cache object. Ex. MaximoDD returns "MAXIMODD"
        Specified by:
        getName in interface MaximoCache
        Returns:
      • tenantStartupRoutine

        public void tenantStartupRoutine()
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getTenantIDFromTenantCode

        public int getTenantIDFromTenantCode(java.lang.String tenantCode)
                                      throws MXException
        Get the tenant id from the tenant code. Exception will be throw if the tenant id does not exist or is not active.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException - if tenant code does not exist or is not active.
      • getTenantCode

        public java.lang.String getTenantCode(UserInfo info)
                                       throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getTenantLoginId

        public java.lang.String getTenantLoginId(UserInfo info)
                                          throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getTenantCode

        public java.lang.String getTenantCode(int id)
                                       throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getPartNumber

        public java.lang.String getPartNumber(int id)
                                       throws MXException
        Get part number from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getDescription

        public java.lang.String getDescription(int id)
                                        throws MXException
        Get description from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getSubscriptionID

        public long getSubscriptionID(UserInfo info)
                               throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getCustomerID

        public long getCustomerID(UserInfo info)
                           throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getStartTime

        public long getStartTime(int id)
                          throws MXException
        Get start time from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException
      • getNumberOfSeats

        public long getNumberOfSeats(UserInfo info)
                              throws MXException
        Get tenant code from the tenant id.
        Parameters:
        tenantCode -
        Returns:
        Throws:
        MXException