public class GroupFilter extends Object
| Constructor and Description |
|---|
GroupFilter() |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
getQueryParams()
Get the query params specified by this filter.
|
GroupFilter |
withAllAvailabley(Boolean allAvailable)
Show all the groups you have access to (defaults to false for authenticated users, true for admin).
|
GroupFilter |
withCustomAttributes(Boolean withCustomAttributes)
Include custom attributes in response (admins only).
|
GroupFilter |
withMinAccessLevel(AccessLevel accessLevel)
Limit to groups where current user has at least this access level.
|
GroupFilter |
withOrderBy(Constants.GroupOrderBy orderBy)
Return groups ordered by id, name, path, created_at, updated_at, or last_activity_at fields.
|
GroupFilter |
withOwned(Boolean owned)
Limit by groups explicitly owned by the current user
|
GroupFilter |
withSearch(String search)
Return list of groups matching the search criteria.
|
GroupFilter |
withSkipGroups(List<Integer> skipGroups)
Do not include the provided groups IDs.
|
GroupFilter |
withSortOder(Constants.SortOrder sort)
Return groups sorted in asc or desc order.
|
GroupFilter |
withStatistics(Boolean statistics)
Include group statistics (admins only).
|
public GroupFilter withSkipGroups(List<Integer> skipGroups)
skipGroups - List of group IDs to not include in the searchpublic GroupFilter withAllAvailabley(Boolean allAvailable)
allAvailable - if true show all avauilable groupspublic GroupFilter withSearch(String search)
search - the search criteriapublic GroupFilter withOrderBy(Constants.GroupOrderBy orderBy)
orderBy - specifies what field to order bypublic GroupFilter withSortOder(Constants.SortOrder sort)
sort - sort direction, ASC or DESCpublic GroupFilter withStatistics(Boolean statistics)
statistics - if true, return statistics with the resultspublic GroupFilter withCustomAttributes(Boolean withCustomAttributes)
withCustomAttributes - if true, include custom attributes in the responsepublic GroupFilter withOwned(Boolean owned)
owned - if true, limit to groups explicitly owned by the current userpublic GroupFilter withMinAccessLevel(AccessLevel accessLevel)
accessLevel - limit to groups where current user has at least this access levelpublic GitLabApiForm getQueryParams()
Copyright © 2021. All rights reserved.