Package org.pentaho.platform.repository.solution.filebased

Examples of org.pentaho.platform.repository.solution.filebased.SolutionRepositoryVfsFileObject


      localeInfo.put( "Locale", getLocale().toString() ); //$NON-NLS-1$

      FileSystemManager fsManager = VFS.getManager();


      SolutionRepositoryVfsFileObject mondrianDS =
        (SolutionRepositoryVfsFileObject) fsManager.resolveFile( urlStr );

      in = mondrianDS.getInputStream();
      res = schemaProcessor.filter( null, localeInfo, in );
    } catch ( FileNotFoundException fnfe ) {
      throw new MondrianCatalogServiceException( Messages.getInstance().getErrorString(
        "MondrianCatalogHelper.ERROR_0007_FILE_NOT_FOUND" ), fnfe ); //$NON-NLS-1$
    } catch ( Exception e ) {
View Full Code Here


      @Override
      public String locate( String catalogPath ) {
        if ( catalogPath.startsWith( "mondrian:" ) ) { //$NON-NLS-1$
          try {
            FileSystemManager fsManager = VFS.getManager();
            SolutionRepositoryVfsFileObject catalog = (SolutionRepositoryVfsFileObject)
                fsManager.resolveFile( catalogPath );
            catalogPath = "solution:" + catalog.getFileRef();
          } catch ( FileSystemException e ) {
            logger.error( e.getMessage() );
          }
        } else {
          catalogPath = super.locate( catalogPath );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.repository.solution.filebased.SolutionRepositoryVfsFileObject

Copyright © 2018 www.massapicom. 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.