|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMondrianCatalogService
A service registering/enumerating registered Mondrian catalogs (schemas).
Method Summary | |
---|---|
void |
addCatalog(MondrianCatalog catalog,
boolean overwrite,
IPentahoSession pentahoSession)
Adds to the global catalog list and possibly persists this information. |
MondrianCatalog |
getCatalog(String context,
IPentahoSession pentahoSession)
Returns the catalog with the given context - name or definition allowable. |
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 |
Method Detail |
---|
List<MondrianCatalog> listCatalogs(IPentahoSession pentahoSession, boolean jndiOnly)
jndiOnly
- return only JNDI-based catalogsvoid addCatalog(MondrianCatalog catalog, boolean overwrite, IPentahoSession pentahoSession) throws MondrianCatalogServiceException
overwrite
- true to overwrite existing catalog (based on match with definition and effectiveDataSourceInfo
MondrianCatalogServiceException
MondrianCatalog getCatalog(String context, IPentahoSession pentahoSession)
null
if context not recognized.
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.MondrianSchema loadMondrianSchema(String solutionLocation, IPentahoSession pentahoSession)
solutionLocation
- location of the schemapentahoSession
- current session object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |