Commit 0346ec91 authored by Matija Obreza's avatar Matija Obreza
Browse files

DescriptorList.publisher added to filters

parent 96aa79c3
......@@ -52,6 +52,9 @@ public class DescriptorListFilter extends AuditedVersionedModelFilter {
/** The published. */
public Boolean published;
/** The publisher. */
public Set<String> publisher;
/**
* Builds the query.
*
......@@ -67,6 +70,9 @@ public class DescriptorListFilter extends AuditedVersionedModelFilter {
if (published != null) {
and.and(descriptorList.published.eq(published));
}
if ((publisher != null) && !publisher.isEmpty()) {
and.and(descriptorList.publisher.in(publisher));
}
if (title != null) {
and.and(title.buildQuery(descriptorList.title));
}
......
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