mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user