public class ProjectFilter
extends java.lang.Object
implements java.io.Serializable
| 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 |
java.lang.String |
toString() |
ProjectFilter |
withArchived(java.lang.Boolean archived)
Limit by archived status.
|
ProjectFilter |
withCustomAttributes(java.lang.Boolean withCustomAttributes)
Include custom attributes in response (admins only).
|
ProjectFilter |
withIdAfter(java.lang.Long idAfter)
Limit results to projects with IDs greater than the specified projectID.
|
ProjectFilter |
withIdBefore(java.lang.Long idBefore)
Limit results to projects with IDs less than the specified project ID.
|
ProjectFilter |
withImported(java.lang.Boolean imported)
Limit results to projects which were imported from external systems by current user.
|
ProjectFilter |
withIssuesEnabled(java.lang.Boolean withIssuesEnabled)
Limit by enabled issues feature
|
ProjectFilter |
withLastActivityAfter(java.util.Date lastActivityAfter)
Limit results to projects with last_activity after specified time.
|
ProjectFilter |
withLastActivityBefore(java.util.Date lastActivityBefore)
Limit results to projects with last_activity before specified time.
|
ProjectFilter |
withMembership(java.lang.Boolean membership)
Limit by projects that the current user is a member of
|
ProjectFilter |
withMergeRequestsEnabled(java.lang.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(java.lang.Boolean owned)
Limit by projects explicitly owned by the current user
|
ProjectFilter |
withProgrammingLanguage(java.lang.String withProgrammingLanguage)
Limit by projects which use the given programming language.
|
ProjectFilter |
withRepositoryChecksumFailed(java.lang.Boolean repositoryChecksumFailed)
Limit projects where the repository checksum calculation has failed.
|
ProjectFilter |
withRepositoryStorage(java.lang.String repositoryStorage)
Limit results to projects stored on the specified repository_storage.
|
ProjectFilter |
withSearch(java.lang.String search)
Return list of projects matching the search criteria.
|
ProjectFilter |
withSearchNamespaces(java.lang.Boolean searchNamespaces)
Include ancestor namespaces when matching search criteria.
|
ProjectFilter |
withSimple(java.lang.Boolean simple)
Return only limited fields for each project.
|
ProjectFilter |
withSortOder(Constants.SortOrder sort)
Return projects sorted in asc or desc order.
|
ProjectFilter |
withStarred(java.lang.Boolean starred)
Limit by projects starred by the current user.
|
ProjectFilter |
withStatistics(java.lang.Boolean statistics)
Include project statistics.
|
ProjectFilter |
withTopic(java.lang.String topic)
Limit results to projects that match all of given topics.
|
ProjectFilter |
withTopicId(java.lang.Integer topic_id)
Limit results to projects with the assigned topic given by the topic ID.
|
ProjectFilter |
withVisibility(Visibility visibility)
Limit by visibility public, internal, or private.
|
ProjectFilter |
withWikiChecksumFailed(java.lang.Boolean wikiChecksumFailed)
Limit projects where the wiki checksum calculation has failed.
|
public ProjectFilter withArchived(java.lang.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(java.lang.String search)
search - the search criteriapublic ProjectFilter withSearchNamespaces(java.lang.Boolean searchNamespaces)
searchNamespaces - if true, include ancestor namespaces when matching search criteriapublic ProjectFilter withSimple(java.lang.Boolean simple)
simple - if true, return only limited fields for each projectpublic ProjectFilter withOwned(java.lang.Boolean owned)
owned - if true, limit to projects explicitly owned by the current userpublic ProjectFilter withMembership(java.lang.Boolean membership)
membership - if true, limit by projects that the current user is a member ofpublic ProjectFilter withStarred(java.lang.Boolean starred)
starred - if true, limit by projects starred by the current userpublic ProjectFilter withStatistics(java.lang.Boolean statistics)
statistics - if true, include project statisticspublic ProjectFilter withCustomAttributes(java.lang.Boolean withCustomAttributes)
withCustomAttributes - if true, include custom attributes in the repsonsepublic ProjectFilter withIssuesEnabled(java.lang.Boolean withIssuesEnabled)
withIssuesEnabled - if true, limit by enabled issues featurepublic ProjectFilter withMergeRequestsEnabled(java.lang.Boolean withMergeRequestsEnabled)
withMergeRequestsEnabled - if true, limit by enabled merge requests featurepublic ProjectFilter withProgrammingLanguage(java.lang.String withProgrammingLanguage)
withProgrammingLanguage - limit by projects which use the given programming languagepublic ProjectFilter withWikiChecksumFailed(java.lang.Boolean wikiChecksumFailed)
wikiChecksumFailed - if true, limit projects where the wiki checksum calculation has failedpublic ProjectFilter withRepositoryChecksumFailed(java.lang.Boolean repositoryChecksumFailed)
repositoryChecksumFailed - if true, limit projects where the repository checksum calculation has failed@Deprecated public 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(java.lang.Long idAfter)
idAfter - limit results to projects with IDs greater than the specified project IDpublic ProjectFilter withIdBefore(java.lang.Long idBefore)
idBefore - limit results to projects with IDs less than the specified project IDpublic ProjectFilter withLastActivityAfter(java.util.Date lastActivityAfter)
lastActivityAfter - limit results to projects with last_activity after specified timepublic ProjectFilter withLastActivityBefore(java.util.Date lastActivityBefore)
lastActivityBefore - limit results to projects with last_activity before specified timepublic ProjectFilter withRepositoryStorage(java.lang.String repositoryStorage)
repositoryStorage - limit results to projects stored on repository_storagepublic ProjectFilter withImported(java.lang.Boolean imported)
imported - limit results to projects imported from external systems by current userpublic ProjectFilter withTopic(java.lang.String topic)
topic - Comma-separated topic names.public ProjectFilter withTopicId(java.lang.Integer topic_id)
topic_id - the topic IDpublic GitLabApiForm getQueryParams(int page, int perPage)
page - specifies the page numberperPage - specifies the number of items per pagepublic GitLabApiForm getQueryParams()
public java.lang.String toString()
toString in class java.lang.Object