use of org.jmesa.limit.Sort in project OpenClinica by OpenClinica.
the class SubjectIdSDVFactory method getStudySubjectSDVSort.
protected StudySubjectSDVSort getStudySubjectSDVSort(Limit limit) {
StudySubjectSDVSort studySubjectSDVSort = new StudySubjectSDVSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
studySubjectSDVSort.addSort(property, order);
}
return studySubjectSDVSort;
}
use of org.jmesa.limit.Sort in project OpenClinica by OpenClinica.
the class ViewNotesSortCriteria method buildFilterCriteria.
public static ViewNotesSortCriteria buildFilterCriteria(SortSet sortSet) {
ViewNotesSortCriteria criteria = new ViewNotesSortCriteria();
for (Sort sort : sortSet.getSorts()) {
String sortField = SORT_BY_TABLE_COLUMN.get(sort.getProperty());
criteria.getSorters().put(sortField, sort.getOrder().name());
}
return criteria;
}
use of org.jmesa.limit.Sort in project OpenClinica by OpenClinica.
the class SDVUtil method getEventCRFSDVSort.
protected EventCRFSDVSort getEventCRFSDVSort(Limit limit) {
EventCRFSDVSort eventCRFSDVSort = new EventCRFSDVSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
eventCRFSDVSort.addSort(property, order);
}
return eventCRFSDVSort;
}
use of org.jmesa.limit.Sort in project OpenClinica by OpenClinica.
the class StudyAuditLogTableFactory method getAuditLogStudySort.
/**
* A very custom way to sort the items. The AuditUserLoginSort acts as a
* command for the Hibernate criteria object. Take the Limit information and
* sort the rows.
*
* @param limit
* The Limit to use.
*/
protected StudyAuditLogSort getAuditLogStudySort(Limit limit) {
StudyAuditLogSort auditLogStudySort = new StudyAuditLogSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
auditLogStudySort.addSort(property, order);
}
return auditLogStudySort;
}
use of org.jmesa.limit.Sort 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