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