psdi.app.site

Class SiteCache

  • java.lang.Object
    • psdi.app.site.SiteCache
    • Constructor Detail

      • SiteCache

        public SiteCache()
    • Method Detail

      • reload

        public void reload()
                    throws MXException
        Description copied from interface: MaximoCache
        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
        See Also:
        MaximoCache.reload()
      • getOrgForSite

        public java.lang.String getOrgForSite(java.lang.String siteID,
                                              UserInfo userInfo)
                                       throws MXException,
                                              java.rmi.RemoteException
        Return the organization for the specified site.
        Parameters:
        siteID - The site for which the orgID is being requested.
        userInfo - UserInfo making the request.
        Returns:
        The organization the site belongs to. This is locale-specific (i.e. if orgid is numeric, the return value may contain commas). If the site does not exist, this will return null.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAllSites

        public java.util.Hashtable getAllSites()
                                        throws MXException,
                                               java.rmi.RemoteException
        Returns:
        #siteOrgCache
        Throws:
        MXException
        java.rmi.RemoteException
      • isActiveSite

        public boolean isActiveSite(java.lang.String siteID)
                             throws MXException,
                                    java.rmi.RemoteException
        Indicate whether the given site is active or not.
        Parameters:
        siteID -
        Returns:
        True if active, else False.
        Throws:
        MXException
        java.rmi.RemoteException