public class ProjectFilter extends Object
| Constructor and Description |
|---|
ProjectFilter() |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
getQueryParams()
Get the query params specified by this filter.
|
GitLabApiForm |
getQueryParams(int page,
int perPage)
Get the query params specified by this filter.
|
ProjectFilter |
minAccessLevel(AccessLevel minAccessLevel)
Deprecated.
Replaced by
getComponentAt |
ProjectFilter |
withArchived(Boolean archived)
Limit by archived status.
|
ProjectFilter |
withCustomAttributes(Boolean withCustomAttributes)
Include custom attributes in response (admins only).
|
ProjectFilter |
withIdAfter(Integer idAfter)
Limit results to projects with IDs greater than the specified projectID.
|
ProjectFilter |
withIdBefore(Integer idBefore)
Limit results to projects with IDs less than the specified project ID.
|
ProjectFilter |
withIssuesEnabled(Boolean withIssuesEnabled)
Limit by enabled issues feature
|
ProjectFilter |
withLastActivityAfter(Date lastActivityAfter)
Limit results to projects with last_activity after specified time.
|
ProjectFilter |
withLastActivityBefore(Date lastActivityBefore)
Limit results to projects with last_activity before specified time.
|
ProjectFilter |
withMembership(Boolean membership)
Limit by projects that the current user is a member of
|
ProjectFilter |
withMergeRequestsEnabled(Boolean withMergeRequestsEnabled)
Limit by enabled merge requests feature
|
ProjectFilter |
withMinAccessLevel(AccessLevel minAccessLevel)
Limit by current user minimal access level.
|
ProjectFilter |
withOrderBy(Constants.ProjectOrderBy orderBy)
Return projects ordered by id, name, path, created_at, updated_at, or last_activity_at fields.
|
ProjectFilter |
withOwned(Boolean owned)
Limit by projects explicitly owned by the current user
|
ProjectFilter |
withProgrammingLanguage(String withProgrammingLanguage)
Limit by projects which use the given programming language.
|
ProjectFilter |
withRepositoryChecksumFailed(Boolean repositoryChecksumFailed)
Limit projects where the repository checksum calculation has failed.
|
ProjectFilter |
withRepositoryStorage(String repositoryStorage)
Limit results to projects stored on the specified repository_storage.
|
ProjectFilter |
withSearch(String search)
Return list of projects matching the search criteria.
|
ProjectFilter |
withSearchNamespaces(Boolean searchNamespaces)
Include ancestor namespaces when matching search criteria.
|
ProjectFilter |
withSimple(Boolean simple)
Return only limited fields for each project.
|
ProjectFilter |
withSortOder(Constants.SortOrder sort)
Return projects sorted in asc or desc order.
|
ProjectFilter |
withStarred(Boolean starred)
Limit by projects starred by the current user.
|
ProjectFilter |
withStatistics(Boolean statistics)
Include project statistics.
|
ProjectFilter |
withVisibility(Visibility visibility)
Limit by visibility public, internal, or private.
|
ProjectFilter |
withWikiChecksumFailed(Boolean wikiChecksumFailed)
Limit projects where the wiki checksum calculation has failed.
|
public ProjectFilter withArchived(Boolean archived)
archived - if true will only return archived projectspublic ProjectFilter withVisibility(Visibility visibility)
visibility - the visibility to matchpublic ProjectFilter withOrderBy(Constants.ProjectOrderBy orderBy)
orderBy - specifies what field to order bypublic ProjectFilter withSortOder(Constants.SortOrder sort)
sort - sort direction, ASC or DESCpublic ProjectFilter withSearch(String search)
search - the search criteriapublic ProjectFilter withSearchNamespaces(Boolean searchNamespaces)
searchNamespaces - if true, include ancestor namespaces when matching search criteriapublic ProjectFilter withSimple(Boolean simple)
simple - if true, return only limited fields for each projectpublic ProjectFilter withOwned(Boolean owned)
owned - if true, limit to projects explicitly owned by the current userpublic ProjectFilter withMembership(Boolean membership)
membership - if true, limit by projects that the current user is a member ofpublic ProjectFilter withStarred(Boolean starred)
starred - if true, limit by projects starred by the current userpublic ProjectFilter withStatistics(Boolean statistics)
statistics - if true, include project statisticspublic ProjectFilter withCustomAttributes(Boolean withCustomAttributes)
withCustomAttributes - if true, include custom attributes in the repsonsepublic ProjectFilter withIssuesEnabled(Boolean withIssuesEnabled)
withIssuesEnabled - if true, limit by enabled issues featurepublic ProjectFilter withMergeRequestsEnabled(Boolean withMergeRequestsEnabled)
withMergeRequestsEnabled - if true, limit by enabled merge requests featurepublic ProjectFilter withProgrammingLanguage(String withProgrammingLanguage)
withProgrammingLanguage - limit by projects which use the given programming languagepublic ProjectFilter withWikiChecksumFailed(Boolean wikiChecksumFailed)
wikiChecksumFailed - if true, limit projects where the wiki checksum calculation has failedpublic ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFailed)
repositoryChecksumFailed - if true, limit projects where the repository checksum calculation has failedpublic ProjectFilter minAccessLevel(AccessLevel minAccessLevel)
getComponentAtminAccessLevel - limit by current user minimal access levelpublic ProjectFilter withMinAccessLevel(AccessLevel minAccessLevel)
minAccessLevel - limit by current user minimal access levelpublic ProjectFilter withIdAfter(Integer idAfter)
idAfter - limit results to projects with IDs greater than the specified project IDpublic ProjectFilter withIdBefore(Integer idBefore)
idBefore - limit results to projects with IDs less than the specified project IDpublic ProjectFilter withLastActivityAfter(Date lastActivityAfter)
lastActivityAfter - limit results to projects with last_activity after specified timepublic ProjectFilter withLastActivityBefore(Date lastActivityBefore)
lastActivityBefore - limit results to projects with last_activity before specified timepublic ProjectFilter withRepositoryStorage(String repositoryStorage)
repositoryStorage - limit results to projects stored on repository_storagepublic GitLabApiForm getQueryParams(int page, int perPage)
page - specifies the page numberperPage - specifies the number of items per pagepublic GitLabApiForm getQueryParams()
Copyright © 2021. All rights reserved.