mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged 5.2.0 (5.2.0) to HEAD (5.2)
132997 mward: Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1) 132930 mward: REPO-1544: further tests (people can update themselves, except for 'enabled' flag) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@133374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1103,7 +1103,12 @@ public class PublicApiClient
|
||||
|
||||
public Person update(String personId, String json, int expectedStatus) throws PublicApiException
|
||||
{
|
||||
HttpResponse response = update("people", personId, null, null, json, null, "Failed to update person", expectedStatus);
|
||||
return update(personId, json, null, expectedStatus);
|
||||
}
|
||||
|
||||
public Person update(String personId, String json, Map<String,String> params, int expectedStatus) throws PublicApiException
|
||||
{
|
||||
HttpResponse response = update("people", personId, null, null, json, params, "Failed to update person", expectedStatus);
|
||||
if (response != null && response.getJsonResponse() != null)
|
||||
{
|
||||
JSONObject entry = (JSONObject) response.getJsonResponse().get("entry");
|
||||
|
Reference in New Issue
Block a user