Package org.saiku.repository

Examples of org.saiku.repository.RepositoryFileObject


//      }

      List<AclMethod> acls = getAcl(path, false);
      if (!file.isDirectory()) {
        String extension = file.getExtension();
        repoObjects.add(new RepositoryFileObject(filename, "#" + relativePath, extension, relativePath, acls));
      } else {
        repoObjects.add(new RepositoryFolderObject(filename, "#" + relativePath, relativePath, acls, getRepositoryObjects(root, relativePath, type, hidden)));
      }
      Collections.sort(repoObjects, new Comparator<IRepositoryObject>() {
View Full Code Here


      if (StringUtils.isNotBlank(path)) {
        ISolutionFile sf = repository.getSolutionFile(path, ISolutionRepository.ACTION_EXECUTE);
        if (sf != null && !sf.isDirectory() && (StringUtils.isBlank(type) || sf.getExtension().endsWith(type.toLowerCase())))  {
          List<AclMethod> acls = getAcl(path, false);
                  String localizedName = repository.getLocalizedFileProperty(sf, "title", ISolutionRepository.ACTION_EXECUTE); //$NON-NLS-1$
          objects.add(new RepositoryFileObject(localizedName, "#" + path, type, path, acls));
          return objects;
        }
      }
      Document navDoc = getRepositoryDocument(PentahoSessionHolder.getSession());
      Node tree = navDoc.getRootElement();
View Full Code Here

              boolean vis =  fileNode.valueOf("@visible").equals("true");
              String t =  fileNode.valueOf("@localized-name");
              String n = fileNode.valueOf("@name");
              if (vis) {
                List<AclMethod> acls = getAcl(relativePath + "/" + name, false);
                children.add(new RepositoryFileObject(t, "#" + relativePath + "/" + n, fileType, relativePath + "/" + n, acls));
              }
            }
            children.addAll(processTree(node, parentPath + "/" + name, fileType));
            List<AclMethod> acls = getAcl(relativePath, true);
            repoObjects.add(new RepositoryFolderObject(localizedName, "#" + relativePath, relativePath, acls, children));
          } else if (visible && !isDirectory) {
            if (StringUtils.isBlank(fileType) || name.endsWith(fileType)) {
              List<AclMethod> acls = getAcl(relativePath + "/" + name, false);
              repoObjects.add(new RepositoryFileObject(localizedName, "#" + relativePath + "/" + name, fileType, relativePath + "/" + name, acls));
            }
          }

        }
        else
View Full Code Here

TOP

Related Classes of org.saiku.repository.RepositoryFileObject

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.