use of org.akaza.openclinica.dao.ScheduledJobSort in project OpenClinica by OpenClinica.
the class ScheduledJobTableFactory method setDataAndLimitVariables.
public void setDataAndLimitVariables(TableFacade tableFacade, List<ScheduledJobs> jobs) {
Limit limit = tableFacade.getLimit();
WebContext context = tableFacade.getWebContext();
if (context != null) {
studyId = Integer.parseInt(context.getParameter("studyId"));
contextPath = context.getContextPath();
}
ScheduledJobSort scheduledJobSort = getScheduledJobSort(limit);
int rowStart = limit.getRowSelect().getRowStart();
int rowEnd = limit.getRowSelect().getRowEnd();
Collection<ScheduledJobs> items = getFilteredItems(jobs, scheduledJobSort, rowStart, rowEnd);
}
use of org.akaza.openclinica.dao.ScheduledJobSort in project OpenClinica by OpenClinica.
the class ScheduledJobTableFactory method getScheduledJobSort.
protected ScheduledJobSort getScheduledJobSort(Limit limit) {
ScheduledJobSort scheduledJobSort = new ScheduledJobSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
scheduledJobSort.addSort(property, order);
}
return scheduledJobSort;
}
Aggregations