Skip to content

Commit d989951

Browse files
authored
Add getters to ProjectFilter (#1308)
1 parent cc711db commit d989951

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

gitlab4j-models/src/main/java/org/gitlab4j/api/models/ProjectFilter.java

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public ProjectFilter withArchived(Boolean archived) {
5353
return (this);
5454
}
5555

56+
public Boolean getArchived() {
57+
return archived;
58+
}
59+
5660
/**
5761
* Limit by visibility public, internal, or private.
5862
*
@@ -64,6 +68,10 @@ public ProjectFilter withVisibility(Visibility visibility) {
6468
return (this);
6569
}
6670

71+
public Visibility getVisibility() {
72+
return visibility;
73+
}
74+
6775
/**
6876
* Return projects ordered by id, name, path, created_at, updated_at, or last_activity_at fields. Default is created_at.
6977
*
@@ -75,6 +83,10 @@ public ProjectFilter withOrderBy(ProjectOrderBy orderBy) {
7583
return (this);
7684
}
7785

86+
public ProjectOrderBy getOrderBy() {
87+
return orderBy;
88+
}
89+
7890
/**
7991
* Return projects sorted in asc or desc order. Default is desc.
8092
*
@@ -86,6 +98,10 @@ public ProjectFilter withSortOder(SortOrder sort) {
8698
return (this);
8799
}
88100

101+
public SortOrder getSort() {
102+
return sort;
103+
}
104+
89105
/**
90106
* Return list of projects matching the search criteria.
91107
*
@@ -97,6 +113,10 @@ public ProjectFilter withSearch(String search) {
97113
return (this);
98114
}
99115

116+
public String getSearch() {
117+
return search;
118+
}
119+
100120
/**
101121
* Include ancestor namespaces when matching search criteria. Default is false.
102122
*
@@ -108,6 +128,10 @@ public ProjectFilter withSearchNamespaces(Boolean searchNamespaces) {
108128
return (this);
109129
}
110130

131+
public Boolean getSearchNamespaces() {
132+
return searchNamespaces;
133+
}
134+
111135
/**
112136
* Return only limited fields for each project. This is a no-op without
113137
* authentication as then only simple fields are returned.
@@ -120,6 +144,10 @@ public ProjectFilter withSimple(Boolean simple) {
120144
return (this);
121145
}
122146

147+
public Boolean getSimple() {
148+
return simple;
149+
}
150+
123151
/**
124152
* Limit by projects explicitly owned by the current user
125153
*
@@ -131,6 +159,10 @@ public ProjectFilter withOwned(Boolean owned) {
131159
return (this);
132160
}
133161

162+
public Boolean getOwned() {
163+
return owned;
164+
}
165+
134166
/**
135167
* Limit by projects that the current user is a member of
136168
*
@@ -142,6 +174,10 @@ public ProjectFilter withMembership(Boolean membership) {
142174
return (this);
143175
}
144176

177+
public Boolean getMembership() {
178+
return membership;
179+
}
180+
145181
/**
146182
* Limit by projects starred by the current user.
147183
*
@@ -153,6 +189,10 @@ public ProjectFilter withStarred(Boolean starred) {
153189
return (this);
154190
}
155191

192+
public Boolean getStarred() {
193+
return starred;
194+
}
195+
156196
/**
157197
* Include project statistics.
158198
*
@@ -164,6 +204,10 @@ public ProjectFilter withStatistics(Boolean statistics) {
164204
return (this);
165205
}
166206

207+
public Boolean getStatistics() {
208+
return statistics;
209+
}
210+
167211
/**
168212
* Include custom attributes in response (admins only).
169213
*
@@ -175,6 +219,10 @@ public ProjectFilter withCustomAttributes(Boolean withCustomAttributes) {
175219
return (this);
176220
}
177221

222+
public Boolean getWithCustomAttributes() {
223+
return withCustomAttributes;
224+
}
225+
178226
/**
179227
* Limit by enabled issues feature
180228
*
@@ -186,6 +234,10 @@ public ProjectFilter withIssuesEnabled(Boolean withIssuesEnabled) {
186234
return (this);
187235
}
188236

237+
public Boolean getWithIssuesEnabled() {
238+
return withIssuesEnabled;
239+
}
240+
189241
/**
190242
* Limit by enabled merge requests feature
191243
*
@@ -197,6 +249,10 @@ public ProjectFilter withMergeRequestsEnabled(Boolean withMergeRequestsEnabled)
197249
return (this);
198250
}
199251

252+
public Boolean getWithMergeRequestsEnabled() {
253+
return withMergeRequestsEnabled;
254+
}
255+
200256
/**
201257
* Limit by projects which use the given programming language.
202258
*
@@ -208,6 +264,10 @@ public ProjectFilter withProgrammingLanguage(String withProgrammingLanguage) {
208264
return (this);
209265
}
210266

267+
public String getWithProgrammingLanguage() {
268+
return withProgrammingLanguage;
269+
}
270+
211271
/**
212272
* Limit projects where the wiki checksum calculation has failed.
213273
*
@@ -220,6 +280,10 @@ public ProjectFilter withWikiChecksumFailed(Boolean wikiChecksumFailed) {
220280
return (this);
221281
}
222282

283+
public Boolean getWikiChecksumFailed() {
284+
return wikiChecksumFailed;
285+
}
286+
223287
/**
224288
* Limit projects where the repository checksum calculation has failed.
225289
*
@@ -232,6 +296,10 @@ public ProjectFilter withRepositoryChecksumFailed(Boolean repositoryChecksumFail
232296
return (this);
233297
}
234298

299+
public Boolean getRepositoryChecksumFailed() {
300+
return repositoryChecksumFailed;
301+
}
302+
235303
/**
236304
* Limit by current user minimal access level.
237305
*
@@ -243,6 +311,10 @@ public ProjectFilter withMinAccessLevel(AccessLevel minAccessLevel) {
243311
return (this);
244312
}
245313

314+
public AccessLevel getMinAccessLevel() {
315+
return minAccessLevel;
316+
}
317+
246318
/**
247319
* Limit results to projects with IDs greater than the specified projectID.
248320
*
@@ -254,6 +326,10 @@ public ProjectFilter withIdAfter(Long idAfter) {
254326
return (this);
255327
}
256328

329+
public Long getIdAfter() {
330+
return idAfter;
331+
}
332+
257333
/**
258334
* Limit results to projects with IDs less than the specified project ID.
259335
*
@@ -265,6 +341,10 @@ public ProjectFilter withIdBefore(Long idBefore) {
265341
return (this);
266342
}
267343

344+
public Long getIdBefore() {
345+
return idBefore;
346+
}
347+
268348
/**
269349
* Limit results to projects with last_activity after specified time.
270350
*
@@ -276,6 +356,10 @@ public ProjectFilter withLastActivityAfter(Date lastActivityAfter) {
276356
return (this);
277357
}
278358

359+
public Date getLastActivityAfter() {
360+
return lastActivityAfter;
361+
}
362+
279363
/**
280364
* Limit results to projects with last_activity before specified time.
281365
*
@@ -287,6 +371,10 @@ public ProjectFilter withLastActivityBefore(Date lastActivityBefore) {
287371
return (this);
288372
}
289373

374+
public Date getLastActivityBefore() {
375+
return lastActivityBefore;
376+
}
377+
290378
/**
291379
* Limit results to projects stored on the specified repository_storage. Available for admins only.
292380
*
@@ -298,6 +386,10 @@ public ProjectFilter withRepositoryStorage(String repositoryStorage) {
298386
return (this);
299387
}
300388

389+
public String getRepositoryStorage() {
390+
return repositoryStorage;
391+
}
392+
301393
/**
302394
* Limit results to projects which were imported from external systems by current user.
303395
*
@@ -309,6 +401,10 @@ public ProjectFilter withImported(Boolean imported) {
309401
return (this);
310402
}
311403

404+
public Boolean getImported() {
405+
return imported;
406+
}
407+
312408
/**
313409
* Limit results to projects that match all of given topics.
314410
*
@@ -320,6 +416,10 @@ public ProjectFilter withTopic(String topic) {
320416
return (this);
321417
}
322418

419+
public String getTopic() {
420+
return topic;
421+
}
422+
323423
/**
324424
* Limit results to projects with the assigned topic given by the topic ID.
325425
*
@@ -331,6 +431,10 @@ public ProjectFilter withTopicId(Integer topic_id) {
331431
return (this);
332432
}
333433

434+
public Integer getTopicId() {
435+
return topic_id;
436+
}
437+
334438
/**
335439
* Get the query params specified by this filter.
336440
*

0 commit comments

Comments
 (0)