nl.vpro.domain.media.search.LocationPager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
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.
/*
* 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;
import static nl.vpro.domain.media.search.LocationSortField.lastModified;
@SuppressWarnings("WSReferenceInspection")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "locationPagerType", namespace = SEARCH_NAMESPACE, propOrder = {
"offset",
"max",
"sort",
"order"
})
public class LocationPager extends Pager {
@lombok.Builder
public LocationPager(long offset, Integer max, LocationSortField sort, Direction order) {
super(offset, max, sort, order);
}
public LocationPager() {
super(0, null, lastModified, Direction.ASC);
}
@Override
@XmlElement
public LocationSortField getSort() {
return super.getSort();
}
@Override
public void setSort(LocationSortField sort) {
super.setSort(sort);
}
}