com.atlassian.gadgets.refimpl
Class UserManagerPersonService
java.lang.Object
com.atlassian.gadgets.refimpl.UserManagerPersonService
- All Implemented Interfaces:
- PersonService
public class UserManagerPersonService
- extends Object
- implements PersonService
A PersonService implementation based on SAL's UserManager class
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserManagerPersonService
public UserManagerPersonService(com.atlassian.sal.api.user.UserManager userManager)
getPerson
public Person getPerson(String userId,
OpenSocialRequestContext requestContext)
throws PersonServiceException
- Description copied from interface:
PersonService
- Returns a
Person corresponding to the personId
- Specified by:
getPerson in interface PersonService
- Parameters:
userId - The requested person idrequestContext - context for this request
- Returns:
- a
Person corresponding to the requested personId, or null if the requested personId could not be resolved
- Throws:
PersonServiceException - if there is a problem while performing this operation
getPeople
public Set<Person> getPeople(Set<String> personIds,
Group group,
OpenSocialRequestContext requestContext)
throws PersonServiceException
- Description copied from interface:
PersonService
- Returns a
List corresponding to the group members of the passed in person IDs
- Specified by:
getPeople in interface PersonService
- Parameters:
personIds - A set of usersgroup - The group to select from each of the passed in personIdsrequestContext - context for this request
- Returns:
- a set of people
- Throws:
PersonServiceException - if there is a problem while performing this operation
Copyright © 2012 Atlassian. All Rights Reserved.