Search in sources :

Example 1 with SampleEntries

use of org.jbei.ice.lib.entry.SampleEntries in project ice by JBEI.

the class CollectionEntries method getSampleEntries.

private Results<PartData> getSampleEntries(ColumnField field, boolean asc, int offset, int limit, String filter, List<String> fields) {
    SampleEntries entries = new SampleEntries(this.userId);
    final List<PartData> list = entries.get(field, asc, offset, limit, filter, fields);
    final long count = entries.getCount(filter);
    Results<PartData> results = new Results<>();
    results.setResultCount(count);
    results.setData(list);
    return results;
}
Also used : Results(org.jbei.ice.lib.dto.common.Results) PartData(org.jbei.ice.lib.dto.entry.PartData) SampleEntries(org.jbei.ice.lib.entry.SampleEntries)

Aggregations

Results (org.jbei.ice.lib.dto.common.Results)1 PartData (org.jbei.ice.lib.dto.entry.PartData)1 SampleEntries (org.jbei.ice.lib.entry.SampleEntries)1