Commit 1a6b02a3 authored by Jeremie Bresson's avatar Jeremie Bresson
Browse files

Merge remote-tracking branch 'origin/main' into 6.x

parents e9cb10ae bff0b319
......@@ -20,6 +20,7 @@ public class PackageFilter implements Serializable {
private String packageName;
private Boolean includeVersionless;
private PackageStatus status;
private String packageVersion;
/**
* Exclude Subgroups.
......@@ -96,6 +97,15 @@ public class PackageFilter implements Serializable {
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.
*
......@@ -110,6 +120,7 @@ public class PackageFilter implements Serializable {
.withParam("package_name", packageName)
.withParam("include_versionless", includeVersionless)
.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