mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130267 gjames: Merged searchapi (5.2.1) to 5.2.N (5.2.1) 130005 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1) 129716 amorarasu: REPO-340 / REPO-1136 - V1 REST API: Unlock Node git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130346 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -799,13 +799,13 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
||||
}
|
||||
return ResourceUtils.getFile(url);
|
||||
}
|
||||
|
||||
|
||||
protected Document lock(String nodeId, String body) throws Exception
|
||||
{
|
||||
HttpResponse response = post(getNodeOperationUrl(nodeId, "lock"), body, null, 200);
|
||||
return RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class);
|
||||
}
|
||||
|
||||
|
||||
protected Document unlock(String nodeId) throws Exception
|
||||
{
|
||||
HttpResponse response = post(getNodeOperationUrl(nodeId, "unlock"), null, null, 200);
|
||||
@@ -884,7 +884,7 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
||||
{
|
||||
return URL_NODES + "/" + nodeId + "/" + URL_CONTENT;
|
||||
}
|
||||
|
||||
|
||||
protected String getNodeOperationUrl(String nodeId, String operation)
|
||||
{
|
||||
return URL_NODES + "/" + nodeId + "/" + operation;
|
||||
|
Reference in New Issue
Block a user