|
||||||||||
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
.)
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 name,
IPentahoSession pentahoSession)
Returns the catalog with the given name or null if name not recognized. |
String |
getDataSourcesConfig()
|
static MondrianCatalogHelper |
getInstance()
|
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 |
setDataSourcesConfig(String dataSourcesConfig)
|
void |
setUseSchemaNameAsCatalogName(boolean useSchemaNameAsCatalogName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MondrianCatalogHelper()
Method Detail |
---|
public static MondrianCatalogHelper getInstance()
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 name, IPentahoSession pentahoSession)
IMondrianCatalogService
null
if name not recognized.
getCatalog
in interface IMondrianCatalogService
name
- of the catalog to fetchpublic 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 |