forked from timols/java-gitlab-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectsQuery.java
More file actions
192 lines (151 loc) · 7.01 KB
/
Copy pathProjectsQuery.java
File metadata and controls
192 lines (151 loc) · 7.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package org.gitlab.api.query;
import org.gitlab.api.models.GitlabAccessLevel;
import java.io.UnsupportedEncodingException;
public class ProjectsQuery extends PaginationQuery {
public static final String PARAM_ARCHIVED = "archived";
public static final String PARAM_VISIBILITY = "visibility";
public static final String PARAM_ORDER_BY = "order_by";
public static final String PARAM_SORT = "sort";
public static final String PARAM_SEARCH = "search";
public static final String PARAM_SIMPLE = "simple";
public static final String PARAM_OWNED = "owned";
public static final String PARAM_MEMBERSHIP = "membership";
public static final String PARAM_STARRED = "starred";
public static final String PARAM_STATISTICS = "statistics";
public static final String PARAM_WITH_CUSTOM_ATTRIBUTES = "with_custom_attributes";
public static final String PARAM_WITH_ISSUES_ENABLED = "with_issues_enabled";
public static final String PARAM_WITH_MERGE_REQUESTS_ENABLED = "with_merge_requests_enabled";
public static final String PARAM_WITH_PROGRAMMING_LANGUAGE = "with_programming_language";
public static final String PARAM_WIKI_CHECKSUM_FAILED = "wiki_checksum_failed";
public static final String PARAM_REPOSITORY_CHECKSUM_FAILED = "repository_checksum_failed";
public static final String PARAM_MIN_ACCESS_LEVEL = "min_access_level";
public void setArchived(Boolean archived) throws UnsupportedEncodingException {
appendIf(PARAM_ARCHIVED, archived);
}
public ProjectsQuery withArchived(Boolean archived) throws UnsupportedEncodingException {
setArchived(archived);
return this;
}
public void setVisibility(String visibility) throws UnsupportedEncodingException {
appendIf(PARAM_VISIBILITY, visibility);
}
public ProjectsQuery withVisibility(String visibility) throws UnsupportedEncodingException {
setVisibility(visibility);
return this;
}
public void setOrderBy(String orderBy) throws UnsupportedEncodingException {
appendIf(PARAM_ORDER_BY, orderBy);
}
public ProjectsQuery withOrderBy(String orderBy) throws UnsupportedEncodingException {
setOrderBy(orderBy);
return this;
}
public void setSort(String sort) throws UnsupportedEncodingException {
appendIf(PARAM_SORT, sort);
}
public ProjectsQuery withSort(String sort) throws UnsupportedEncodingException {
setSort(sort);
return this;
}
public void setSearch(String search) throws UnsupportedEncodingException {
appendIf(PARAM_SEARCH, search);
}
public ProjectsQuery withSearch(String search) throws UnsupportedEncodingException {
setSearch(search);
return this;
}
public void setSimple(Boolean simple) throws UnsupportedEncodingException {
appendIf(PARAM_SIMPLE, simple);
}
public ProjectsQuery withSimple(Boolean simple) throws UnsupportedEncodingException {
setSimple(simple);
return this;
}
public void setOwned(Boolean owned) throws UnsupportedEncodingException {
appendIf(PARAM_OWNED, owned);
}
public ProjectsQuery withOwned(Boolean owned) throws UnsupportedEncodingException {
setOwned(owned);
return this;
}
public void setMembership(Boolean membership) throws UnsupportedEncodingException {
appendIf(PARAM_MEMBERSHIP, membership);
}
public ProjectsQuery withMembership(Boolean membership) throws UnsupportedEncodingException {
setMembership(membership);
return this;
}
public void setStarred(Boolean starred) throws UnsupportedEncodingException {
appendIf(PARAM_STARRED, starred);
}
public ProjectsQuery withStarred(Boolean starred) throws UnsupportedEncodingException {
setStarred(starred);
return this;
}
public void setStatistics(Boolean statistics) throws UnsupportedEncodingException {
appendIf(PARAM_STATISTICS, statistics);
}
public ProjectsQuery withStatistics(Boolean statistics) throws UnsupportedEncodingException {
setStatistics(statistics);
return this;
}
public void setWithCustomAttributes(Boolean withCustomAttributes) throws UnsupportedEncodingException {
appendIf(PARAM_WITH_CUSTOM_ATTRIBUTES, withCustomAttributes);
}
public ProjectsQuery withWithCustomAttributes(Boolean withCustomAttributes) throws UnsupportedEncodingException {
setWithCustomAttributes(withCustomAttributes);
return this;
}
public void setWithIssuesEnabled(Boolean withIssuesEnabled) throws UnsupportedEncodingException {
appendIf(PARAM_WITH_ISSUES_ENABLED, withIssuesEnabled);
}
public ProjectsQuery withWithIssuesEnabled(Boolean withIssuesEnabled) throws UnsupportedEncodingException {
setWithIssuesEnabled(withIssuesEnabled);
return this;
}
public void setWithMergeRequestsEnabled(Boolean withMergeRequestsEnabled) throws UnsupportedEncodingException {
appendIf(PARAM_WITH_MERGE_REQUESTS_ENABLED, withMergeRequestsEnabled);
}
public ProjectsQuery withWithMergeRequestsEnabled(Boolean withMergeRequestsEnabled) throws UnsupportedEncodingException {
setWithMergeRequestsEnabled(withMergeRequestsEnabled);
return this;
}
public void setWithProgrammingLanguage(String withProgrammingLanguage) throws UnsupportedEncodingException {
appendIf(PARAM_WITH_PROGRAMMING_LANGUAGE, withProgrammingLanguage);
}
public ProjectsQuery withWithProgrammingLanguage(String withProgrammingLanguage) throws UnsupportedEncodingException {
setWithProgrammingLanguage(withProgrammingLanguage);
return this;
}
public void setWikiChecksumFailed(Boolean wikiChecksumFailed) throws UnsupportedEncodingException {
appendIf(PARAM_WIKI_CHECKSUM_FAILED, wikiChecksumFailed);
}
public ProjectsQuery withWikiChecksumFailed(Boolean wikiChecksumFailed) throws UnsupportedEncodingException {
setWikiChecksumFailed(wikiChecksumFailed);
return this;
}
public void setRepositoryChecksumFailed(Boolean repositoryChecksumFailed) throws UnsupportedEncodingException {
appendIf(PARAM_REPOSITORY_CHECKSUM_FAILED, repositoryChecksumFailed);
}
public ProjectsQuery withRepositoryChecksumFailed(Boolean repositoryChecksumFailed) throws UnsupportedEncodingException {
setRepositoryChecksumFailed(repositoryChecksumFailed);
return this;
}
public void setMinAccessLevel(GitlabAccessLevel minAccessLevel) throws UnsupportedEncodingException {
appendIf(PARAM_MIN_ACCESS_LEVEL, minAccessLevel);
}
public ProjectsQuery withMinAccessLevel(GitlabAccessLevel minAccessLevel) throws UnsupportedEncodingException {
setMinAccessLevel(minAccessLevel);
return this;
}
@Override
public ProjectsQuery withPage(int page) {
super.withPage(page);
return this;
}
@Override
public ProjectsQuery withPerPage(int perPage) {
super.withPerPage(perPage);
return this;
}
}