Class GroupServiceImpl.GroupFinderImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.finder.AbstractFinder<Group>
com.atlassian.confluence.api.impl.service.people.GroupServiceImpl.GroupFinderImpl
- All Implemented Interfaces:
ManyFetcher<Group>
,SingleFetcher<Group>
,GroupService.GroupFinder
- Enclosing class:
GroupServiceImpl
public class GroupServiceImpl.GroupFinderImpl
extends AbstractFinder<Group>
implements GroupService.GroupFinder
-
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 pageRequest) withAncestorOf
(Group group) Restrict the finder to find groups that are ancestor of the given groupwithMember
(User person) Filter to groups that have the given person as a memberwithMembershipOf
(Group group) Restrict the finder to find groups that are members of the given groupRestrict the fetched group to matching the given groupNamewithParentOf
(Group group) Restrict the finder to find groups that are parents of the given groupMethods 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
-
GroupFinderImpl
-
-
Method Details
-
fetchMany
- Specified by:
fetchMany
in interfaceManyFetcher<Group>
- Parameters:
pageRequest
- - 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
-
withName
Description copied from interface:GroupService.GroupFinder
Restrict the fetched group to matching the given groupName- Specified by:
withName
in interfaceGroupService.GroupFinder
- Parameters:
groupName
- the name of the group to match- Returns:
- a fetcher with the filter applied.
-
withMember
Description copied from interface:GroupService.GroupFinder
Filter to groups that have the given person as a member- Specified by:
withMember
in interfaceGroupService.GroupFinder
- Returns:
- this
-
withMembershipOf
Description copied from interface:GroupService.GroupFinder
Restrict the finder to find groups that are members of the given group- Specified by:
withMembershipOf
in interfaceGroupService.GroupFinder
- Returns:
- this
-
withParentOf
Description copied from interface:GroupService.GroupFinder
Restrict the finder to find groups that are parents of the given group- Specified by:
withParentOf
in interfaceGroupService.GroupFinder
- Returns:
- this
-
withAncestorOf
Description copied from interface:GroupService.GroupFinder
Restrict the finder to find groups that are ancestor of the given group- Specified by:
withAncestorOf
in interfaceGroupService.GroupFinder
- Returns:
- this
-
fetch
- Specified by:
fetch
in interfaceSingleFetcher<Group>
-