nl.vpro.domain.api.media.MemberRefFacet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
/*
* Copyright (C) 2014 All rights reserved
* VPRO The Netherlands
*/
package nl.vpro.domain.api.media;
import javax.validation.Valid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import nl.vpro.domain.api.FacetOrder;
import nl.vpro.domain.api.SearchableLimitableFacet;
/**
* @author Roelof Jan Koekoek
* @since 3.3
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "memberRefFacetType")
public class MemberRefFacet extends MediaFacet implements SearchableLimitableFacet {
@Valid
MemberRefSearch subSearch;
public MemberRefFacet() {
}
public MemberRefFacet(Integer threshold, FacetOrder sort, Integer max) {
super(threshold, sort, max);
}
@lombok.Builder(builderMethodName = "refBuilder")
private MemberRefFacet(Integer threshold, FacetOrder sort, Integer max, MemberRefSearch subSearch) {
super(threshold, sort, max);
this.subSearch = subSearch;
}
@Override
public boolean hasSubSearch() {
return subSearch != null && subSearch.hasSearches();
}
@Override
@XmlElement
public MemberRefSearch getSubSearch() {
return subSearch;
}
@Override
public void setSubSearch(MemberRefSearch subSearch) {
this.subSearch = subSearch;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy