mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
121438 jvonka: FileFolder API - support "relativePath" when listing children, eg. /nodes/{parentId}/children?relativePath=f1/f2 - also add tests both for list children & get node info - TODO investigate/fix RA-755 RA-672, RA-753 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -129,7 +129,7 @@ public class NodesImpl implements Nodes
|
||||
DOCUMENT, FOLDER
|
||||
}
|
||||
|
||||
private final static String PARAM_RELATIVE_PATH = "relativePath"; // TODO wip
|
||||
private final static String PARAM_RELATIVE_PATH = "relativePath";
|
||||
|
||||
private final static String PARAM_SELECT_PROPERTIES = "properties";
|
||||
private final static String PARAM_SELECT_PATH = "path";
|
||||
@@ -842,7 +842,8 @@ public class NodesImpl implements Nodes
|
||||
|
||||
public CollectionWithPagingInfo<Node> listChildren(String parentFolderNodeId, Parameters parameters)
|
||||
{
|
||||
final NodeRef parentNodeRef = validateOrLookupNode(parentFolderNodeId, null);
|
||||
String path = parameters.getParameter(PARAM_RELATIVE_PATH);
|
||||
final NodeRef parentNodeRef = validateOrLookupNode(parentFolderNodeId, path);
|
||||
|
||||
final List<String> selectParam = parameters.getSelectedProperties();
|
||||
|
||||
|
Reference in New Issue
Block a user