Class PersonServiceImpl.PersonFinderImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder<Person>
com.atlassian.confluence.api.impl.service.people.PersonServiceImpl.PersonFinderImpl
- All Implemented Interfaces:
ManyFetcher<Person>
,SingleFetcher<Person>
,PersonService.PersonFinder
,PersonService.SinglePersonFetcher
- Enclosing class:
- PersonServiceImpl
public class PersonServiceImpl.PersonFinderImpl
extends AbstractFinder<Person>
implements PersonService.PersonFinder
-
Field Summary
Fields inherited from class com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder
expansions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetch()
fetchMany
(PageRequest request) withMembershipOf
(Group group) Restrict the finder to just users that are members of the given groupwithUserKey
(com.atlassian.sal.api.user.UserKey userKey) Restrict the finder to just the user with the given userKeywithUsername
(String username) Restrict the finder to just user with the given usernameMethods inherited from class com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder
getExpansions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetchOneOrNull, fetchOrNull
-
Constructor Details
-
PersonFinderImpl
-
-
Method Details
-
withUserKey
Description copied from interface:PersonService.PersonFinder
Restrict the finder to just the user with the given userKey- Specified by:
withUserKey
in interfacePersonService.PersonFinder
- Returns:
- this
-
withUsername
Description copied from interface:PersonService.PersonFinder
Restrict the finder to just user with the given username- Specified by:
withUsername
in interfacePersonService.PersonFinder
- Returns:
- this
-
withMembershipOf
Description copied from interface:PersonService.PersonFinder
Restrict the finder to just users that are members of the given group- Specified by:
withMembershipOf
in interfacePersonService.PersonFinder
- Returns:
- this
-
fetchMany
- Specified by:
fetchMany
in interfaceManyFetcher<Person>
- Parameters:
request
- - a pageRequest to use to paginate the response, this will be limited if it exceeds system limits- Returns:
- a pageResponse of given type that matches the given restrictions
-
fetch
- Specified by:
fetch
in interfaceSingleFetcher<Person>
-