Package org.miaixz.bus.gitlab.models
Class GroupProjectsFilter
java.lang.Object
org.miaixz.bus.gitlab.models.GroupProjectsFilter
- All Implemented Interfaces:
Serializable
This class is used to filter Projects when getting lists of projects for a specified group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the query params specified by this filter.toString()withArchived(Boolean archived) Limit by archived status.withCustomAttributes(Boolean withCustomAttributes) Include custom attributes in response (admins only).withIncludeSubGroups(Boolean includeSubGroups) Include projects that are located in subgroupswithIssuesEnabled(Boolean withIssuesEnabled) Limit by enabled issues featurewithMergeRequestsEnabled(Boolean withMergeRequestsEnabled) Limit by enabled merge requests featurewithOrderBy(Constants.ProjectOrderBy orderBy) Return projects ordered by id, name, path, created_at, updated_at, or last_activity_at fields.Limit by projects explicitly owned by the current userwithSearch(String search) Return list of projects matching the search criteria.withShared(Boolean withShared) Include projects that are shared with this groupwithSimple(Boolean simple) Return only limited fields for each project.Return projects sorted in asc or desc order.withStarred(Boolean starred) Limit by projects starred by the current user.withVisibility(Visibility visibility) Limit by visibility public, internal, or private.
-
Constructor Details
-
GroupProjectsFilter
public GroupProjectsFilter()
-
-
Method Details
-
withArchived
Limit by archived status.- Parameters:
archived- if true will only return archived projects- Returns:
- the reference to this ProjectFilter instance
-
withVisibility
Limit by visibility public, internal, or private.- Parameters:
visibility- the visibility to match- Returns:
- the reference to this ProjectFilter instance
-
withOrderBy
Return projects 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 ProjectFilter instance
-
withSortOder
Return projects sorted in asc or desc order. Default is desc.- Parameters:
sort- sort direction, ASC or DESC- Returns:
- the reference to this ProjectFilter instance
-
withSearch
Return list of projects matching the search criteria.- Parameters:
search- the search criteria- Returns:
- the reference to this ProjectFilter instance
-
withSimple
Return only limited fields for each project. This is a no-op without authentication as then only simple fields are returned.- Parameters:
simple- if true, return only limited fields for each project- Returns:
- the reference to this ProjectFilter instance
-
withOwned
Limit by projects explicitly owned by the current user- Parameters:
owned- if true, limit to projects explicitly owned by the current user- Returns:
- the reference to this ProjectFilter instance
-
withStarred
Limit by projects starred by the current user.- Parameters:
starred- if true, limit by projects starred by the current user- Returns:
- the reference to this ProjectFilter instance
-
withCustomAttributes
Include custom attributes in response (admins only).- Parameters:
withCustomAttributes- if true, include custom attributes in the repsonse- Returns:
- the reference to this ProjectFilter instance
-
withIssuesEnabled
Limit by enabled issues feature- Parameters:
withIssuesEnabled- if true, limit by enabled issues feature- Returns:
- the reference to this ProjectFilter instance
-
withMergeRequestsEnabled
Limit by enabled merge requests feature- Parameters:
withMergeRequestsEnabled- if true, imit by enabled merge requests feature- Returns:
- the reference to this ProjectFilter instance
-
withIncludeSubGroups
Include projects that are located in subgroups- Parameters:
includeSubGroups- if true, projects from subgroups will be included- Returns:
- the reference to this ProjectFilter instance
-
getQueryParams
Get the query params specified by this filter.- Returns:
- a GitLabApiForm instance holding the query parameters for this ProjectFilter instance
-
toString
-