Search in sources :

Example 1 with OrderDirectionType

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;
}
Also used : PagingType(com.evolveum.prism.xml.ns._public.query_3.PagingType)

Aggregations

PagingType (com.evolveum.prism.xml.ns._public.query_3.PagingType)1