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:
Jamal Kaabi-Mofrad
2016-05-10 10:45:37 +00:00
parent c210aaf402
commit 08bb18b229
2 changed files with 48 additions and 9 deletions

View File

@@ -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();