Examples of listCatalogs()


Examples of org.pentaho.platform.plugin.action.mondrian.catalog.IMondrianCatalogService.listCatalogs()

    // Apply any properties for this catalog specified in datasource.xml
    IMondrianCatalogService mondrianCatalogService =
      PentahoSystem.get( IMondrianCatalogService.class, "IMondrianCatalogService",
        PentahoSessionHolder.getSession() );
    List<MondrianCatalog> catalogs = mondrianCatalogService.listCatalogs( PentahoSessionHolder.getSession(), true );
    String propCat = properties.getProperty( RolapConnectionProperties.Catalog.name() );
    for ( MondrianCatalog cat : catalogs ) {
      if ( cat.getDefinition().equalsIgnoreCase( propCat ) ) {
        Util.PropertyList connectProperties = Util.parseConnectString( cat.getDataSourceInfo() );
        Iterator<Pair<String, String>> iter = connectProperties.iterator();
View Full Code Here

Examples of org.pentaho.platform.plugin.action.mondrian.catalog.IMondrianCatalogService.listCatalogs()

    ArrayList<Cube> cubes = new ArrayList<Cube>();

    IMondrianCatalogService catalogService =
        PentahoSystem.get( IMondrianCatalogService.class, "IMondrianCatalogService", UserConsoleService
            .getPentahoSession() ); //$NON-NLS-1$
    List<MondrianCatalog> catalogs = catalogService.listCatalogs( UserConsoleService.getPentahoSession(), true );

    for ( MondrianCatalog cat : catalogs ) {
      for ( MondrianCube cube : cat.getSchema().getCubes() ) {
        cubes.add( new Cube( cat.getName(), cube.getName(), cube.getId() ) );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.