use of com.evolveum.prism.xml.ns._public.query_3.OrderDirectionType in project midpoint by Evolveum.
the class PagingTypeFactory method createPaging.
public static PagingType createPaging(int offset, int maxSize, OrderDirectionType order, String orderBy) {
PagingType paging = new PagingType();
paging.setOffset(offset);
paging.setMaxSize(maxSize);
if (order != null && StringUtils.isNotEmpty(orderBy)) {
paging.setOrderBy(fillPropertyReference(orderBy));
paging.setOrderDirection(order);
}
return paging;
}
Aggregations