Examples of ResourcesManager


Examples of unibg.overencrypt.server.ResourcesManager

  @Override
  public Resource child(String name) {
    File file = new File(realFile, name);
    if(file.isDirectory()){
      ResourcesManager resMan = (ResourcesManager) factory;
      HashMap<Integer, ArrayList<String>> permissions = resMan.getUserPermissions(loggedUserID);
      ArrayList<String> pathsAllowed = permissions.get(ownerID);
      for (Iterator<String> iterator = pathsAllowed.iterator(); iterator.hasNext();) {
        String path = (String) iterator.next();
        if(path.equals(file.getAbsolutePath().replace(ServerConfiguration.getWebDAVrootPath(), ""))){
          return new OverEncryptedFriendsFolder(factory, path, ownerID, loggedUserID);
View Full Code Here

Examples of unibg.overencrypt.server.ResourcesManager

  @Override
  public List<? extends Resource> getChildren() {
    ArrayList<Resource> list = new ArrayList<Resource>();
   
    ResourcesManager resMan = (ResourcesManager) factory;
    HashMap<Integer, ArrayList<String>> permissions = resMan.getUserPermissions(loggedUserID);
    ArrayList<String> pathsAllowed = permissions.get(ownerID);

    //Retrieve only files in friend's folder
    File[] files = realFile.listFiles();
    for (int i = 0; i < files.length; i++) {
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.