Package org.pentaho.reporting.libraries.pensol.vfs

Examples of org.pentaho.reporting.libraries.pensol.vfs.WebSolutionFileSystem


    return true;
  }

  public void refresh() throws IOException
  {
    final WebSolutionFileSystem fileSystem = (WebSolutionFileSystem) this.fileSystemRoot.getFileSystem();
    fileSystem.getLocalFileModel().refresh();
    table.refresh();
  }
View Full Code Here


      httpClient.getParams().setAuthenticationPreemptive( true );
      final PentahoSolutionsFileSystemConfigBuilder configBuilder = new PentahoSolutionsFileSystemConfigBuilder();
      final int timeOut = configBuilder.getTimeOut( fileSystemOptions );
      httpClient.getParams().setSoTimeout( Math.max( 0, timeOut ) );

      return new WebSolutionFileSystem( genericRootName, fileSystemOptions,
        new LocalFileModel( outerName.getURI(), httpClient,
          outerName.getUserName(), outerName.getPassword() )
      );
    } finally {
      UserAuthenticatorUtils.cleanup( authData );
View Full Code Here

   * @param rootName The name of the root file of the file system to create.
   */
  protected FileSystem doCreateFileSystem(final FileName rootName,
                                          final FileSystemOptions fileSystemOptions) throws FileSystemException
  {
    return new WebSolutionFileSystem(rootName, fileSystemOptions, new TestSolutionFileModel());
  }
View Full Code Here

    try
    {
      final FileSystem fileSystem = vfsConnection.getFileSystem();
      if (fileSystem instanceof WebSolutionFileSystem)
      {
        final WebSolutionFileSystem webSolutionFileSystem = (WebSolutionFileSystem) fileSystem;
        final Long l = (Long) webSolutionFileSystem.getAttribute(WebSolutionFileSystem.LAST_REFRESH_TIME_ATTRIBUTE);
        if (l != null)
        {
          if ((System.currentTimeMillis() - l) > 500)
          {
            webSolutionFileSystem.getLocalFileModel().refresh();
          }
        }
        return true;
      }
    }
View Full Code Here

    return new RepositoryConnection(this.repositoryRoot, this.baseURL, this.filters, showFoldersOnly);
  }

  public void refresh() throws IOException
  {
    final WebSolutionFileSystem fileSystem = (WebSolutionFileSystem) this.repositoryRoot.getFileSystem();
    fileSystem.getLocalFileModel().refresh();
  }
View Full Code Here

    try
    {
      final FileSystem fileSystem = vfsConnection.getFileSystem();
      if (fileSystem instanceof WebSolutionFileSystem)
      {
        final WebSolutionFileSystem webSolutionFileSystem = (WebSolutionFileSystem) fileSystem;
        final Long l = (Long) webSolutionFileSystem.getAttribute(WebSolutionFileSystem.LAST_REFRESH_TIME_ATTRIBUTE);
        if (l != null)
        {
          if ((System.currentTimeMillis() - l) > 500)
          {
            webSolutionFileSystem.getLocalFileModel().refresh();
          }
        }
        return true;
      }
    }
View Full Code Here

    return true;
  }

  public void refresh() throws IOException
  {
    final WebSolutionFileSystem fileSystem = (WebSolutionFileSystem) this.fileSystemRoot.getFileSystem();
    fileSystem.getLocalFileModel().refresh();
    table.refresh();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.pensol.vfs.WebSolutionFileSystem

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.