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 Constructor Description GroupFinderImpl(Expansion[] expansions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Group>fetch()PageResponse<Group>fetchMany(PageRequest pageRequest)GroupService.GroupFinderwithMember(User person)Filter to groups that have the given person as a memberGroupService.GroupFinderwithName(String groupName)Restrict the fetched group to matching the given groupName-
Methods 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
fetchOne, fetchOneOrNull, fetchOrNull
-
-
-
-
Constructor Detail
-
GroupFinderImpl
public GroupFinderImpl(Expansion[] expansions)
-
-
Method Detail
-
fetchMany
public PageResponse<Group> fetchMany(PageRequest pageRequest)
- Specified by:
fetchManyin 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
public GroupService.GroupFinder withName(String groupName)
Description copied from interface:GroupService.GroupFinderRestrict the fetched group to matching the given groupName- Specified by:
withNamein interfaceGroupService.GroupFinder- Parameters:
groupName- the name of the group to match- Returns:
- a fetcher with the filter applied.
-
withMember
public GroupService.GroupFinder withMember(User person)
Description copied from interface:GroupService.GroupFinderFilter to groups that have the given person as a member- Specified by:
withMemberin interfaceGroupService.GroupFinder- Returns:
- this
-
fetch
public Optional<Group> fetch()
- Specified by:
fetchin interfaceSingleFetcher<Group>
-
-