Package org.vosao.service.vo

Examples of org.vosao.service.vo.FolderRequestVO


        Messages.get("folder.success_delete"));
  }

  @Override
  public FolderRequestVO getFolderRequest(Long folderId, Long folderParentId) {
    FolderRequestVO result = new FolderRequestVO();
    FolderEntity folder = getFolder(folderId);
    result.setFolder(folder);
    Long permFolderId = folderParentId;
    if (result.getFolder() != null) {
      result.setChildren(getByParent(folderId));
      result.setFiles(getFileService().getByFolder(folderId));
      result.setPermissions(getFolderPermissionService().selectByFolder(
          folderId));
      permFolderId = folderId;
      result.setAncestors(getDao().getFolderDao().getAncestors(folder));
      result.setParent(getFolder(folder.getParent()));
    }
    else {
      FolderEntity parent = getFolder(folderParentId);
      result.setAncestors(getDao().getFolderDao().getAncestors(parent));
      result.setParent(parent);
    }
    result.setGroups(getGroupService().select());
    result.setFolderPermission(getFolderPermissionService().getPermission(
        permFolderId));
    return result;
  }
View Full Code Here

TOP

Related Classes of org.vosao.service.vo.FolderRequestVO

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.