com.atlassian.gadgets.refimpl
Class UserManagerPersonService

java.lang.Object
  extended by 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


Constructor Summary
UserManagerPersonService(com.atlassian.sal.api.user.UserManager userManager)
           
 
Method Summary
 Set<Person> getPeople(Set<String> personIds, Group group, OpenSocialRequestContext requestContext)
          Returns a List corresponding to the group members of the passed in person IDs
 Person getPerson(String userId, OpenSocialRequestContext requestContext)
          Returns a Person corresponding to the personId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagerPersonService

public UserManagerPersonService(com.atlassian.sal.api.user.UserManager userManager)
Method Detail

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 id
requestContext - 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 users
group - The group to select from each of the passed in personIds
requestContext - 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.