Merged 5.2.N (5.2.1) to HEAD (5.2)

130046 jvonka: REPO-1187 / REPO-164: V1 REST API to "lock content node" - initially, we will support one of two lock types, either ALLOW_OWNER_CHANGES (default, if not requested otherwise) or FULL
   - we will not support ALLOW_ADD_CHILDREN lock type (removed as part of this change request)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130244 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-09-06 14:45:36 +00:00
parent dd8adcbd2f
commit 76e33da7f5
2 changed files with 8 additions and 3 deletions

View File

@@ -3728,6 +3728,10 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
Map<String, String> body = new HashMap<>();
body.put("type", "FULL123");
post(getNodeOperationUrl(dC1Id, "lock"), toJsonAsStringNonNull(body), null, 400);
body = new HashMap<>();
body.put("type", "ALLOW_ADD_CHILDREN");
post(getNodeOperationUrl(dC1Id, "lock"), toJsonAsStringNonNull(body), null, 400);
body = new HashMap<>();
body.put("lifetime", "PERSISTENT123");