Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
a29c007e
Commit
a29c007e
authored
May 15, 2019
by
Greg Messner
Browse files
Updated with recently added filter attributes.
parent
f3881bda
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/ProjectFilter.java
View file @
a29c007e
...
@@ -23,6 +23,9 @@ public class ProjectFilter {
...
@@ -23,6 +23,9 @@ public class ProjectFilter {
private
Boolean
withCustomAttributes
;
private
Boolean
withCustomAttributes
;
private
Boolean
withIssuesEnabled
;
private
Boolean
withIssuesEnabled
;
private
Boolean
withMergeRequestsEnabled
;
private
Boolean
withMergeRequestsEnabled
;
private
String
withProgrammingLanguage
;
private
Boolean
wikiChecksumFailed
;
private
Boolean
repositoryChecksumFailed
;
private
AccessLevel
minAccessLevel
;
private
AccessLevel
minAccessLevel
;
/**
/**
...
@@ -161,7 +164,7 @@ public class ProjectFilter {
...
@@ -161,7 +164,7 @@ public class ProjectFilter {
/**
/**
* Limit by enabled merge requests feature
* Limit by enabled merge requests feature
*
*
* @param withMergeRequestsEnabled if true, imit by enabled merge requests feature
* @param withMergeRequestsEnabled if true,
l
imit by enabled merge requests feature
* @return the reference to this ProjectFilter instance
* @return the reference to this ProjectFilter instance
*/
*/
public
ProjectFilter
withMergeRequestsEnabled
(
Boolean
withMergeRequestsEnabled
)
{
public
ProjectFilter
withMergeRequestsEnabled
(
Boolean
withMergeRequestsEnabled
)
{
...
@@ -169,6 +172,41 @@ public class ProjectFilter {
...
@@ -169,6 +172,41 @@ public class ProjectFilter {
return
(
this
);
return
(
this
);
}
}
/**
* Limit by projects which use the given programming language.
*
* @param withProgrammingLanguage limit by projects which use the given programming language
* @return the reference to this ProjectFilter instance
*/
public
ProjectFilter
withProgrammingLanguage
(
String
withProgrammingLanguage
)
{
this
.
withProgrammingLanguage
=
withProgrammingLanguage
;
return
(
this
);
}
/**
* Limit projects where the wiki checksum calculation has failed.
*
* @since GitLab 11.2
* @param wikiChecksumFailed if true, limit projects where the wiki checksum calculation has failed
* @return the reference to this ProjectFilter instance
*/
public
ProjectFilter
withWikiChecksumFailed
(
Boolean
wikiChecksumFailed
)
{
this
.
wikiChecksumFailed
=
wikiChecksumFailed
;
return
(
this
);
}
/**
* Limit projects where the repository checksum calculation has failed.
*
* @since GitLab 11.2
* @param repositoryChecksumFailed if true, limit projects where the repository checksum calculation has failed
* @return the reference to this ProjectFilter instance
*/
public
ProjectFilter
withRepositoryChecksumFailed
(
Boolean
repositoryChecksumFailed
)
{
this
.
repositoryChecksumFailed
=
repositoryChecksumFailed
;
return
(
this
);
}
/**
/**
* Limit by current user minimal access level
* Limit by current user minimal access level
*
*
...
@@ -213,6 +251,9 @@ public class ProjectFilter {
...
@@ -213,6 +251,9 @@ public class ProjectFilter {
.
withParam
(
"with_custom_attributes"
,
withCustomAttributes
)
.
withParam
(
"with_custom_attributes"
,
withCustomAttributes
)
.
withParam
(
"with_issues_enabled"
,
withIssuesEnabled
)
.
withParam
(
"with_issues_enabled"
,
withIssuesEnabled
)
.
withParam
(
"with_merge_requests_enabled "
,
withMergeRequestsEnabled
))
.
withParam
(
"with_merge_requests_enabled "
,
withMergeRequestsEnabled
))
.
withParam
(
"with_programming_language"
,
withProgrammingLanguage
)
.
withParam
(
"wiki_checksum_failed"
,
wikiChecksumFailed
)
.
withParam
(
"repository_checksum_failed"
,
repositoryChecksumFailed
)
.
withParam
(
"min_access_level "
,
(
minAccessLevel
!=
null
?
minAccessLevel
.
toValue
()
:
null
)
.
withParam
(
"min_access_level "
,
(
minAccessLevel
!=
null
?
minAccessLevel
.
toValue
()
:
null
)
);
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment