|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.plugin.action.mondrian.catalog.MondrianCatalogHelper
public class MondrianCatalogHelper
Reads in file containing Mondrian data sources and catalogs. (Contains code copied from XmlaServlet
.)
Field Summary | |
---|---|
static String |
MONDRIAN_CATALOG_CACHE_REGION
|
Constructor Summary | |
---|---|
MondrianCatalogHelper()
|
Method Summary | |
---|---|
void |
addCatalog(MondrianCatalog catalog,
boolean overwrite,
IPentahoSession pentahoSession)
Adds to the global catalog list and possibly persists this information. |
static int |
addToCatalog(String baseUrl,
boolean enableXmla,
String schemaSolutionPath,
IPentahoSession session,
String jndiName,
boolean overwrite)
|
MondrianCatalog |
getCatalog(String context,
IPentahoSession pentahoSession)
Returns the catalog with the given context - name or definition allowable. |
MondrianCatalogComplementInfo |
getCatalogComplementInfoMap(String name)
Method to access the MondrianCatalogComplementInfo taken a catalog name. |
String |
getDataSourcesConfig()
|
static MondrianCatalogHelper |
getInstance()
Deprecated. Please use PentahoSystem.get to get the Mondrian Catalog Service |
boolean |
isUseSchemaNameAsCatalogName()
|
List<MondrianCatalog> |
listCatalogs(IPentahoSession pentahoSession,
boolean jndiOnly)
Lists all catalogs (filtered according to access control rules). |
MondrianSchema |
loadMondrianSchema(String solutionLocation,
IPentahoSession pentahoSession)
this method loads a mondrian schema |
void |
reInit(IPentahoSession pentahoSession)
|
void |
setDataSourcesConfig(String dataSourcesConfig)
|
void |
setUseSchemaNameAsCatalogName(boolean useSchemaNameAsCatalogName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String MONDRIAN_CATALOG_CACHE_REGION
Constructor Detail |
---|
public MondrianCatalogHelper()
Method Detail |
---|
public static MondrianCatalogHelper getInstance()
public void reInit(IPentahoSession pentahoSession)
public String getDataSourcesConfig()
public void setDataSourcesConfig(String dataSourcesConfig)
public List<MondrianCatalog> listCatalogs(IPentahoSession pentahoSession, boolean jndiOnly)
IMondrianCatalogService
listCatalogs
in interface IMondrianCatalogService
jndiOnly
- return only JNDI-based catalogspublic void addCatalog(MondrianCatalog catalog, boolean overwrite, IPentahoSession pentahoSession) throws MondrianCatalogServiceException
IMondrianCatalogService
addCatalog
in interface IMondrianCatalogService
overwrite
- true to overwrite existing catalog (based on match with definition and effectiveDataSourceInfo
MondrianCatalogServiceException
public MondrianCatalog getCatalog(String context, IPentahoSession pentahoSession)
IMondrianCatalogService
null
if context not recognized.
getCatalog
in interface IMondrianCatalogService
context
- Either the name of the catalog to fetch, or the catalog's definition string
NOTE that the context can be the catalog name or the definition string for the catalog. If you are using the definition string to
retrieve the catalog from the cache, you cannot be guaranteed what datasource is in play; so under these circumstances, this catalog's
definition is the only part of the catalog that can be trusted. As this feature was added to enable looking up Mondrian
roles from the schema, we don't much care which datasource is in play.public MondrianCatalogComplementInfo getCatalogComplementInfoMap(String name)
name
- Catalog schema location
public MondrianSchema loadMondrianSchema(String solutionLocation, IPentahoSession pentahoSession)
loadMondrianSchema
in interface IMondrianCatalogService
solutionLocation
- location of the schemapentahoSession
- current session object
public boolean isUseSchemaNameAsCatalogName()
public void setUseSchemaNameAsCatalogName(boolean useSchemaNameAsCatalogName)
public static int addToCatalog(String baseUrl, boolean enableXmla, String schemaSolutionPath, IPentahoSession session, String jndiName, boolean overwrite)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |