use of org.opennms.web.utils.QueryParameters in project opennms by OpenNMS.
the class AbstractDaoRestServiceWithDTO method applyLimitOffsetOrderBy.
private static void applyLimitOffsetOrderBy(final MultivaluedMap<String, String> p, final CriteriaBuilder builder, final Integer defaultLimit) {
final QueryParameters queryParameters = QueryParametersBuilder.buildFrom(p);
if (queryParameters.getLimit() == null) {
queryParameters.setLimit(defaultLimit);
}
CriteriaBuilderUtils.applyQueryParameters(builder, queryParameters);
}
Aggregations