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

132343 rmunteanu: REPO-556: List People - Allow people to be retrieved via the /people collection
      - added implementation for get people endpoint
      - added tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-11-03 20:06:41 +00:00
parent edf2c25c42
commit 97195d1534
4 changed files with 301 additions and 62 deletions

View File

@@ -26,6 +26,8 @@
package org.alfresco.rest.api;
import org.alfresco.rest.api.model.Person;
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
import org.alfresco.rest.framework.resource.parameters.Parameters;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.security.NoSuchPersonException;
@@ -33,6 +35,10 @@ public interface People
{
String DEFAULT_USER = "-me-";
String PARAM_FIRST_NAME = "firstName";
String PARAM_LAST_NAME = "lastName";
String PARAM_USER_NAME = "userName";
String validatePerson(String personId);
String validatePerson(String personId, boolean validateIsCurrentUser);
NodeRef getAvatar(String personId);
@@ -59,4 +65,11 @@ public interface People
* @return The updated person details.
*/
Person update(String personId, Person person);
/**
* Get people list
*
* @return CollectionWithPagingInfo<Person>
*/
CollectionWithPagingInfo<Person> getPeople(Parameters parameters);
}