Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IMarkerService.java | ||
---|---|---|
5 | 5 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
6 | 6 |
import eu.etaxonomy.cdm.model.common.Marker; |
7 | 7 |
import eu.etaxonomy.cdm.model.common.MarkerType; |
8 |
import eu.etaxonomy.cdm.model.common.User; |
|
8 | 9 |
import eu.etaxonomy.cdm.persistence.dao.BeanInitializer; |
9 | 10 |
import eu.etaxonomy.cdm.persistence.query.OrderHint; |
10 | 11 |
|
... | ... | |
21 | 22 |
* @return |
22 | 23 |
*/ |
23 | 24 |
public Pager<Marker> page(MarkerType markerType, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
25 |
|
|
26 |
/** |
|
27 |
* |
|
28 |
* @param creator the person who created those markers |
|
29 |
* @param markerType the markerType of those markers (can be null) |
|
30 |
* @param pageSize The maximum number of markers returned (can be null for all markers) |
|
31 |
* @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based) |
|
32 |
* @param orderHints Properties to order by |
|
33 |
* @param propertyPaths Properties to initialize in the returned entities, following the syntax described in {@link BeanInitializer#initialize(Object, List)} |
|
34 |
* @return a paged list of Marker instances |
|
35 |
*/ |
|
36 |
public Pager<Marker> list(User creator, MarkerType markerType, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths); |
|
37 |
|
|
38 |
/** |
|
39 |
* |
|
40 |
* @param creator the person who created those markers |
|
41 |
* @param markerType the markerType of those markers (can be null) |
|
42 |
* @return |
|
43 |
*/ |
|
44 |
public int count(User creator, MarkerType markerType); |
|
24 | 45 |
|
25 | 46 |
} |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk