Commit a29c007e authored by Greg Messner's avatar Greg Messner
Browse files

Updated with recently added filter attributes.

parent f3881bda
...@@ -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, limit 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)
); );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment