nl.vpro.domain.api.media.TitleSortOrder 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
package nl.vpro.domain.api.media;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import com.fasterxml.jackson.annotation.JsonProperty;
import nl.vpro.domain.api.Order;
import nl.vpro.domain.media.support.OwnerType;
import nl.vpro.domain.media.support.TextualType;
/**
* @author Michiel Meeuwissen
*/
@XmlType(name = "titleSortOrderType")
@EqualsAndHashCode(callSuper = true)
@ToString
public class TitleSortOrder extends MediaSortOrder {
@Getter
@XmlAttribute
private TextualType type;
@Getter
@XmlAttribute
private OwnerType owner;
@lombok.Builder(builderClassName = "Builder")
public TitleSortOrder(TextualType textualType, OwnerType ownerType, Order order) {
super(null, order);
this.type = textualType;
this.owner = ownerType;
}
protected TitleSortOrder() {
super(null);
// jaxb
}
@Override
@JsonProperty("field")
public MediaSortField getField() {
return MediaSortField.title;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy