All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.api.media.TitleSortOrder Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.4.1
Show newest version
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