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
getExpansionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetchOneOrNull, fetchOrNull
-
Constructor Details
-
PersonFinderImpl
-
-
Method Details
-
withUserKey
Description copied from interface:PersonService.PersonFinderRestrict the finder to just the user with the given userKey- Specified by:
withUserKeyin interfacePersonService.PersonFinder- Returns:
- this
-
withUsername
Description copied from interface:PersonService.PersonFinderRestrict the finder to just user with the given username- Specified by:
withUsernamein interfacePersonService.PersonFinder- Returns:
- this
-
withMembershipOf
Description copied from interface:PersonService.PersonFinderRestrict the finder to just users that are members of the given group- Specified by:
withMembershipOfin interfacePersonService.PersonFinder- Returns:
- this
-
fetchMany
- Specified by:
fetchManyin 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:
fetchin interfaceSingleFetcher<Person>
-