Unverified Commit bff0b319 authored by valentinmanea's avatar valentinmanea Committed by GitHub
Browse files

Add packageVersion filter (#1139)



Co-authored-by: default avatarValentin Manea <valentin.manea@aviloo.com>
parent 9378b786
...@@ -20,6 +20,7 @@ public class PackageFilter implements Serializable { ...@@ -20,6 +20,7 @@ public class PackageFilter implements Serializable {
private String packageName; private String packageName;
private Boolean includeVersionless; private Boolean includeVersionless;
private PackageStatus status; private PackageStatus status;
private String packageVersion;
/** /**
* Exclude Subgroups. * Exclude Subgroups.
...@@ -96,6 +97,15 @@ public class PackageFilter implements Serializable { ...@@ -96,6 +97,15 @@ public class PackageFilter implements Serializable {
return (this); return (this);
} }
/**
* Filter the returned packages by version.
* @param packageVersion package packageVersion
* @return the reference to this ProjectFilter instance
*/
public PackageFilter withPackageVersion(String packageVersion) {
this.packageVersion = packageVersion;
return (this);
}
/** /**
* Get the query params specified by this filter. * Get the query params specified by this filter.
* *
...@@ -110,6 +120,7 @@ public class PackageFilter implements Serializable { ...@@ -110,6 +120,7 @@ public class PackageFilter implements Serializable {
.withParam("package_name", packageName) .withParam("package_name", packageName)
.withParam("include_versionless", includeVersionless) .withParam("include_versionless", includeVersionless)
.withParam("status", status) .withParam("status", status)
.withParam("package_version", packageVersion)
); );
} }
} }
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