public class

WebProjectLookup

extends Object
java.lang.Object
   ↳ com.microstrategy.web.objects.WebProjectLookup

Class Overview

Class facilitates quick cached lookup of project names from their DSS IDs and vice-versa. It also provides a cache lookup of project instances, and their respective localizations, if any are defined.

Summary

Public Constructors
WebProjectLookup()
Public Methods
void flush(String serverName)
Flushes the WebIServerSession#getServerName() entry from the lookup cache.
synchronized static WebProjectLookup getInstance()
WebProjectInstance getProject(WebIServerSession session)
String getProjectID(WebIServerSession session, String projectName)
String getProjectID(WebIServerSession session)
Locale[] getProjectMessagesLocales(WebIServerSession session)
Locale[] getProjectMetadataLocales(WebIServerSession session)
String getProjectName(WebIServerSession session, String projectDSSID)
Returns a project name from its DSS ID.
Locale[] getProjectWarehouseDataLocales(WebIServerSession session)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WebProjectLookup ()

Public Methods

public void flush (String serverName)

Flushes the WebIServerSession#getServerName() entry from the lookup cache. Subsequent project lookups to this server will repopulate the cache from the Intelligence Server. If no serverName is specified, then the entire cache is flushed.

public static synchronized WebProjectLookup getInstance ()

public WebProjectInstance getProject (WebIServerSession session)

public String getProjectID (WebIServerSession session, String projectName)

Parameters
session session to inquire project
projectName name of the project
Returns
  • project DSS ID
Throws
thrown if there is a problem obtaining the project ID
WebObjectsException

public String getProjectID (WebIServerSession session)

public Locale[] getProjectMessagesLocales (WebIServerSession session)

public Locale[] getProjectMetadataLocales (WebIServerSession session)

public String getProjectName (WebIServerSession session, String projectDSSID)

Returns a project name from its DSS ID. The name is localized according to the session metadata locale. WebObjectsException is thrown if no project is found.

Returns
  • a localized project name
Throws
WebObjectsException thrown if a problem is encountered

public Locale[] getProjectWarehouseDataLocales (WebIServerSession session)