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/BRANCHES/DEV/5.2.N/root@132343 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Raluca Munteanu
2016-11-03 15:34:33 +00:00
parent 8e553ec442
commit bb0296b851
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);
}