From 6ffdc084cf0b35a6001a101f70fe09effae6cc75 Mon Sep 17 00:00:00 2001 From: Ainur Mukhtarov Date: Mon, 29 Dec 2025 18:34:22 +0500 Subject: [PATCH] Add getters to ProjectFilter --- .../gitlab4j/api/models/ProjectFilter.java | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/gitlab4j-models/src/main/java/org/gitlab4j/api/models/ProjectFilter.java b/gitlab4j-models/src/main/java/org/gitlab4j/api/models/ProjectFilter.java index 94cec0ca2..6763e9668 100644 --- a/gitlab4j-models/src/main/java/org/gitlab4j/api/models/ProjectFilter.java +++ b/gitlab4j-models/src/main/java/org/gitlab4j/api/models/ProjectFilter.java @@ -53,6 +53,10 @@ public ProjectFilter withArchived(Boolean archived) { return (this); } + public Boolean getArchived() { + return archived; + } + /** * Limit by visibility public, internal, or private. * @@ -64,6 +68,10 @@ public ProjectFilter withVisibility(Visibility visibility) { return (this); } + public Visibility getVisibility() { + return visibility; + } + /** * Return projects ordered by id, name, path, created_at, updated_at, or last_activity_at fields. Default is created_at. * @@ -75,6 +83,10 @@ public ProjectFilter withOrderBy(ProjectOrderBy orderBy) { return (this); } + public ProjectOrderBy getOrderBy() { + return orderBy; + } + /** * Return projects sorted in asc or desc order. Default is desc. * @@ -86,6 +98,10 @@ public ProjectFilter withSortOder(SortOrder sort) { return (this); } + public SortOrder getSort() { + return sort; + } + /** * Return list of projects matching the search criteria. * @@ -97,6 +113,10 @@ public ProjectFilter withSearch(String search) { return (this); } + public String getSearch() { + return search; + } + /** * Include ancestor namespaces when matching search criteria. Default is false. * @@ -108,6 +128,10 @@ public ProjectFilter withSearchNamespaces(Boolean searchNamespaces) { return (this); } + public Boolean getSearchNamespaces() { + return searchNamespaces; + } + /** * Return only limited fields for each project. This is a no-op without * authentication as then only simple fields are returned. @@ -120,6 +144,10 @@ public ProjectFilter withSimple(Boolean simple) { return (this); } + public Boolean getSimple() { + return simple; + } + /** * Limit by projects explicitly owned by the current user * @@ -131,6 +159,10 @@ public ProjectFilter withOwned(Boolean owned) { return (this); } + public Boolean getOwned() { + return owned; + } + /** * Limit by projects that the current user is a member of * @@ -142,6 +174,10 @@ public ProjectFilter withMembership(Boolean membership) { return (this); } + public Boolean getMembership() { + return membership; + } + /** * Limit by projects starred by the current user. * @@ -153,6 +189,10 @@ public ProjectFilter withStarred(Boolean starred) { return (this); } + public Boolean getStarred() { + return starred; + } + /** * Include project statistics. * @@ -164,6 +204,10 @@ public ProjectFilter withStatistics(Boolean statistics) { return (this); } + public Boolean getStatistics() { + return statistics; + } + /** * Include custom attributes in response (admins only). * @@ -175,6 +219,10 @@ public ProjectFilter withCustomAttributes(Boolean withCustomAttributes) { return (this); } + public Boolean getWithCustomAttributes() { + return withCustomAttributes; + } + /** * Limit by enabled issues feature * @@ -186,6 +234,10 @@ public ProjectFilter withIssuesEnabled(Boolean withIssuesEnabled) { return (this); } + public Boolean getWithIssuesEnabled() { + return withIssuesEnabled; + } + /** * Limit by enabled merge requests feature * @@ -197,6 +249,10 @@ public ProjectFilter withMergeRequestsEnabled(Boolean withMergeRequestsEnabled) return (this); } + public Boolean getWithMergeRequestsEnabled() { + return withMergeRequestsEnabled; + } + /** * Limit by projects which use the given programming language. * @@ -208,6 +264,10 @@ public ProjectFilter withProgrammingLanguage(String withProgrammingLanguage) { return (this); } + public String getWithProgrammingLanguage() { + return withProgrammingLanguage; + } + /** * Limit projects where the wiki checksum calculation has failed. * @@ -220,6 +280,10 @@ public ProjectFilter withWikiChecksumFailed(Boolean wikiChecksumFailed) { return (this); } + public Boolean getWikiChecksumFailed() { + return wikiChecksumFailed; + } + /** * Limit projects where the repository checksum calculation has failed. * @@ -232,6 +296,10 @@ public ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFail return (this); } + public Boolean getRepositoryChecksumFailed() { + return repositoryChecksumFailed; + } + /** * Limit by current user minimal access level. * @@ -243,6 +311,10 @@ public ProjectFilter withMinAccessLevel(AccessLevel minAccessLevel) { return (this); } + public AccessLevel getMinAccessLevel() { + return minAccessLevel; + } + /** * Limit results to projects with IDs greater than the specified projectID. * @@ -254,6 +326,10 @@ public ProjectFilter withIdAfter(Long idAfter) { return (this); } + public Long getIdAfter() { + return idAfter; + } + /** * Limit results to projects with IDs less than the specified project ID. * @@ -265,6 +341,10 @@ public ProjectFilter withIdBefore(Long idBefore) { return (this); } + public Long getIdBefore() { + return idBefore; + } + /** * Limit results to projects with last_activity after specified time. * @@ -276,6 +356,10 @@ public ProjectFilter withLastActivityAfter(Date lastActivityAfter) { return (this); } + public Date getLastActivityAfter() { + return lastActivityAfter; + } + /** * Limit results to projects with last_activity before specified time. * @@ -287,6 +371,10 @@ public ProjectFilter withLastActivityBefore(Date lastActivityBefore) { return (this); } + public Date getLastActivityBefore() { + return lastActivityBefore; + } + /** * Limit results to projects stored on the specified repository_storage. Available for admins only. * @@ -298,6 +386,10 @@ public ProjectFilter withRepositoryStorage(String repositoryStorage) { return (this); } + public String getRepositoryStorage() { + return repositoryStorage; + } + /** * Limit results to projects which were imported from external systems by current user. * @@ -309,6 +401,10 @@ public ProjectFilter withImported(Boolean imported) { return (this); } + public Boolean getImported() { + return imported; + } + /** * Limit results to projects that match all of given topics. * @@ -320,6 +416,10 @@ public ProjectFilter withTopic(String topic) { return (this); } + public String getTopic() { + return topic; + } + /** * Limit results to projects with the assigned topic given by the topic ID. * @@ -331,6 +431,10 @@ public ProjectFilter withTopicId(Integer topic_id) { return (this); } + public Integer getTopicId() { + return topic_id; + } + /** * Get the query params specified by this filter. *