Package org.miaixz.bus.gitlab.models
Class PackageFilter
java.lang.Object
org.miaixz.bus.gitlab.models.PackageFilter
- 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.withExcludeSubgroups(Boolean excludeSubgroups) Exclude Subgroups.withIncludeVersionless(Boolean includeVersionless) withOrderBy(Constants.PackageOrderBy orderBy) Return projects ordered by created_at, name, version, type, or project_pathwithPackageName(String packageName) Filter the project packages with a fuzzy search by namewithPackageType(PackageType packageType) Filter the returned packages by type.Return projects sorted in asc or desc order.withStatus(Constants.PackageStatus status) Filter the returned packages by status.
-
Constructor Details
-
PackageFilter
public PackageFilter()
-
-
Method Details
-
withExcludeSubgroups
Exclude Subgroups.- Parameters:
excludeSubgroups- if true, packages from projects from subgroups are not listed.- Returns:
- the reference to this ProjectFilter instance
-
withOrderBy
Return projects ordered by created_at, name, version, type, or project_path- 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
-
withPackageType
Filter the returned packages by type.- Parameters:
packageType- One of conan, maven, npm, pypi, composer, nuget, helm, generic or golang- Returns:
- the reference to this ProjectFilter instance
-
withPackageName
Filter the project packages with a fuzzy search by name- Parameters:
packageName-- Returns:
- the reference to this ProjectFilter instance
-
withIncludeVersionless
- Parameters:
includeVersionless- if true, versionless packages are included in the response- Returns:
- the reference to this ProjectFilter instance
-
withStatus
Filter the returned packages by status.- Parameters:
status- One of default (default), hidden, or processing- 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
-