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;
}