Package com.microstrategy.web.objects
Class WebProjectLookup
- java.lang.Object
-
- com.microstrategy.web.objects.WebProjectLookup
-
public class WebProjectLookup extends java.lang.Object
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.- Since:
- MicroStrategy Web 9.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebProjectLookup.LocalizationType
-
Constructor Summary
Constructors Constructor Description WebProjectLookup()
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static WebProjectLookup getInstance()
-
getProjectLocalizationType
public WebProjectLookup.LocalizationType getProjectLocalizationType(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectPrimaryMetadataLocaleLCID
public int getProjectPrimaryMetadataLocaleLCID(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectPrimaryDataLocaleLCID
public int getProjectPrimaryDataLocaleLCID(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
flushAvailableLocalesCache
public void flushAvailableLocalesCache(CacheHint session)
-
getProjectMetadataLocales
public java.util.Locale[] getProjectMetadataLocales(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectMetadataLocalesLCID
public java.lang.Integer[] getProjectMetadataLocalesLCID(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectWarehouseDataLocales
public java.util.Locale[] getProjectWarehouseDataLocales(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectWarehouseDataLocalesLCID
public java.lang.Integer[] getProjectWarehouseDataLocalesLCID(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectMessagesLocales
public java.util.Locale[] getProjectMessagesLocales(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectID
public java.lang.String getProjectID(WebIServerSession session, java.lang.String projectName) throws WebObjectsException
- Parameters:
session
- session to inquire projectprojectName
- name of the project- Returns:
- project DSS ID
- Throws:
MSTRUncheckedException
- thrown if there is a problem obtaining the project IDWebObjectsException
-
getProjectID
public java.lang.String getProjectID(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
getProjectName
public java.lang.String getProjectName(WebIServerSession session, java.lang.String projectDSSID) throws WebObjectsException
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.- Parameters:
session
-projectDSSID
-- Returns:
- a localized project name
- Throws:
WebObjectsException
- thrown if a problem is encountered
-
flush
public void flush(java.lang.String serverName)
Flushes theWebIServerSession#getServerName()
entry from the lookup cache. Subsequent project lookups to this server will repopulate the cache from the Intelligence Server. If noserverName
is specified, then the entire cache is flushed.
-
getProject
public WebProjectInstance getProject(WebIServerSession session) throws WebObjectsException
- Throws:
WebObjectsException
-
-