Package org.aoju.bus.gitlab.models
Class GroupFilter
java.lang.Object
org.aoju.bus.gitlab.models.GroupFilter
This class is used to filter Projects when getting lists of projects for a specified group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the query params specified by this filter.withAllAvailabley(Boolean allAvailable) Show all the groups you have access to (defaults to false for authenticated users, true for admin).withCustomAttributes(Boolean withCustomAttributes) Include custom attributes in response (admins only).withMinAccessLevel(AccessLevel accessLevel) Limit to groups where current user has at least this access level.withOrderBy(Constants.GroupOrderBy orderBy) Return groups ordered by id, name, path, created_at, updated_at, or last_activity_at fields.Limit by groups explicitly owned by the current userwithSearch(String search) Return list of groups matching the search criteria.withSkipGroups(List<Integer> skipGroups) Do not include the provided groups IDs.Return groups sorted in asc or desc order.withStatistics(Boolean statistics) Include group statistics (admins only).withTopLevelOnly(Boolean topLevelOnly) Limit by groups which are top level groups
-
Constructor Details
-
GroupFilter
public GroupFilter()
-
-
Method Details
-
withSkipGroups
Do not include the provided groups IDs.- Parameters:
skipGroups- List of group IDs to not include in the search- Returns:
- the reference to this GroupFilter instance
-
withAllAvailabley
Show all the groups you have access to (defaults to false for authenticated users, true for admin). Attributes owned and min_access_level have precedence- Parameters:
allAvailable- if true show all avauilable groups- Returns:
- the reference to this GroupFilter instance
-
withSearch
Return list of groups matching the search criteria.- Parameters:
search- the search criteria- Returns:
- the reference to this GroupFilter instance
-
withOrderBy
Return groups ordered by id, name, path, created_at, updated_at, or last_activity_at fields. Default is created_at.- Parameters:
orderBy- specifies what field to order by- Returns:
- the reference to this GroupFilter instance
-
withSortOder
Return groups sorted in asc or desc order. Default is desc.- Parameters:
sort- sort direction, ASC or DESC- Returns:
- the reference to this GroupFilter instance
-
withStatistics
Include group statistics (admins only).- Parameters:
statistics- if true, return statistics with the results- Returns:
- the reference to this GroupFilter instance
-
withCustomAttributes
Include custom attributes in response (admins only).- Parameters:
withCustomAttributes- if true, include custom attributes in the response- Returns:
- the reference to this GroupFilter instance
-
withOwned
Limit by groups explicitly owned by the current user- Parameters:
owned- if true, limit to groups explicitly owned by the current user- Returns:
- the reference to this GroupFilter instance
-
withMinAccessLevel
Limit to groups where current user has at least this access level.- Parameters:
accessLevel- limit to groups where current user has at least this access level- Returns:
- the reference to this GroupFilter instance
-
withTopLevelOnly
Limit by groups which are top level groups- Parameters:
topLevelOnly- if true, limit to groups which are top level groups- Returns:
- the reference to this GroupFilter instance
-
getQueryParams
Get the query params specified by this filter.- Returns:
- a GitLabApiForm instance holding the query parameters for this GroupFilter instance
-