Examples of RepositoryFile


Examples of org.pentaho.platform.api.repository2.unified.RepositoryFile

    }

    while ( nodeIterator.hasNext() ) {
      Node node = nodeIterator.nextNode();
      if ( isSupportedNodeType( pentahoJcrConstants, node ) ) {
        RepositoryFile file = nodeToFile( session, pentahoJcrConstants, pathConversionHelper, lockHelper, node );
        if ( !repositoryRequest.isShowHidden() ) {
          if ( !file.isHidden() ) {
            children.add( file );
          }
        } else {
          children.add( file );
        }
View Full Code Here

Examples of org.pentaho.platform.repository.solution.dbbased.RepositoryFile

  public void testVoter() throws Exception {
    SecurityHelper.getInstance().runAsUser( "suzy", new Callable<Void>() {

      @Override
      public Void call() throws Exception {
        RepositoryFile testFile = new RepositoryFile( "Test Folder", null, null ); //$NON-NLS-1$
        // RepositoryFile has no acls on it. Nobody should be able to access it.
        // But, we're using an allowAll voter.
        PentahoAllowAllAclVoter voter = new PentahoAllowAllAclVoter();
        assertTrue( voter.hasAccess( PentahoSessionHolder.getSession(), testFile, IPentahoAclEntry.PERM_EXECUTE ) );
        IPentahoAclEntry entry = voter.getEffectiveAcl( PentahoSessionHolder.getSession(), testFile );
View Full Code Here

Examples of org.saiku.datasources.connection.RepositoryFile

    } catch (RepositoryException e) {
      e.printStackTrace();
    }

    try {
      return new RepositoryFile(n != null ? n.getName() : null, null, fileUrl);
    } catch (RepositoryException e) {
      e.printStackTrace();
    }

    return null;
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.