use of org.jmesa.limit.SortSet in project OpenClinica by OpenClinica.
the class ListSubjectTableFactory method getListSubjectSort.
/**
* 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 ListSubjectSort getListSubjectSort(Limit limit) {
ListSubjectSort listSubjectSort = new ListSubjectSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
listSubjectSort.addSort(property, order);
}
return listSubjectSort;
}
use of org.jmesa.limit.SortSet in project OpenClinica by OpenClinica.
the class ListDiscNotesForCRFTableFactory method getListEventsForSubjectSort.
protected ListDiscNotesForCRFSort getListEventsForSubjectSort(Limit limit) {
ListDiscNotesForCRFSort listDiscNotesForCRFSort = new ListDiscNotesForCRFSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
listDiscNotesForCRFSort.addSort(property, order);
}
return listDiscNotesForCRFSort;
}
use of org.jmesa.limit.SortSet in project OpenClinica by OpenClinica.
the class ListNotesTableFactory method getListSubjectSort.
/**
* 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 ListNotesSort getListSubjectSort(Limit limit) {
ListNotesSort listNotesSort = new ListNotesSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
listNotesSort.addSort(property, order);
}
return listNotesSort;
}
use of org.jmesa.limit.SortSet in project OpenClinica by OpenClinica.
the class ListStudySubjectTableFactory method getSubjectSort.
/**
* A very custom way to sort the items. The PresidentSort acts as a command for the Hibernate criteria object. There
* are probably many ways to do this, but this is the most flexible way I have found. The point is you need to
* somehow take the Limit information and sort the rows.
*
* @param limit
* The Limit to use.
*/
protected FindSubjectsSort getSubjectSort(Limit limit) {
FindSubjectsSort auditUserLoginSort = new FindSubjectsSort();
SortSet sortSet = limit.getSortSet();
Collection<Sort> sorts = sortSet.getSorts();
for (Sort sort : sorts) {
String property = sort.getProperty();
String order = sort.getOrder().toParam();
auditUserLoginSort.addSort(property, order);
}
return auditUserLoginSort;
}
Aggregations