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

nl.vpro.domain.media.search.MediaPager Maven / Gradle / Ivy

Go to download

The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it. It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.

There is a newer version: 8.3.1
Show newest version
/*
 * Copyright (C) 2010 Licensed under the Apache License, Version 2.0
 * VPRO The Netherlands
 */
package nl.vpro.domain.media.search;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;

import static nl.vpro.domain.Xmlns.SEARCH_NAMESPACE;

@SuppressWarnings("WSReferenceInspection")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mediaPagerType", namespace = SEARCH_NAMESPACE, propOrder = {
    "offset",
    "max",
    "sort",
    "order"
})
public class MediaPager extends Pager {

    @lombok.Builder
    public MediaPager(long offset, Integer max, MediaSortField sort, Direction order) {
        super(offset, max, sort, order);
    }

    public MediaPager(Integer max) {
        this(0, max, null, Direction.ASC);
    }


    public MediaPager() {
        this(0, null, null, Direction.ASC);
    }

    @Override
    @XmlElement
    public MediaSortField getSort() {
        return super.getSort();
    }

    @Override
    public void setSort(MediaSortField sort) {
        super.setSort(sort);
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy