public class GroupFilter
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
GroupFilter() |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
getQueryParams()
Get the query params specified by this filter.
|
java.lang.String |
toString() |
GroupFilter |
withAllAvailable(java.lang.Boolean allAvailable)
Show all the groups you have access to (defaults to false for authenticated users, true for admin).
|
GroupFilter |
withAllAvailabley(java.lang.Boolean allAvailable)
Deprecated.
this method contains a typo, use
withAllAvailable(Boolean) instead |
GroupFilter |
withCustomAttributes(java.lang.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(java.lang.Boolean owned)
Limit by groups explicitly owned by the current user
|
GroupFilter |
withSearch(java.lang.String search)
Return list of groups matching the search criteria.
|
GroupFilter |
withSkipGroups(java.util.List<java.lang.Integer> skipGroups)
Do not include the provided groups IDs.
|
GroupFilter |
withSortOder(Constants.SortOrder sort)
Return groups sorted in asc or desc order.
|
GroupFilter |
withStatistics(java.lang.Boolean statistics)
Include group statistics (admins only).
|
GroupFilter |
withTopLevelOnly(java.lang.Boolean topLevelOnly)
Limit by groups which are top level groups
|
public GroupFilter withSkipGroups(java.util.List<java.lang.Integer> skipGroups)
skipGroups - List of group IDs to not include in the search@Deprecated public GroupFilter withAllAvailabley(java.lang.Boolean allAvailable)
withAllAvailable(Boolean) insteadpublic GroupFilter withAllAvailable(java.lang.Boolean allAvailable)
allAvailable - if true show all available groupspublic GroupFilter withSearch(java.lang.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(java.lang.Boolean statistics)
statistics - if true, return statistics with the resultspublic GroupFilter withCustomAttributes(java.lang.Boolean withCustomAttributes)
withCustomAttributes - if true, include custom attributes in the responsepublic GroupFilter withOwned(java.lang.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 GroupFilter withTopLevelOnly(java.lang.Boolean topLevelOnly)
topLevelOnly - if true, limit to groups which are top level groupspublic GitLabApiForm getQueryParams()
public java.lang.String toString()
toString in class java.lang.Object