Project

General

Profile

Download (1.79 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.api.service;
10

    
11
import java.util.List;
12

    
13
import eu.etaxonomy.cdm.api.service.pager.Pager;
14
import eu.etaxonomy.cdm.model.common.Annotation;
15
import eu.etaxonomy.cdm.model.common.MarkerType;
16
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
17
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;
18
import eu.etaxonomy.cdm.persistence.query.OrderHint;
19

    
20
public interface IDescriptionElementService
21
        extends IAnnotatableService<DescriptionElementBase> {
22

    
23
    /**
24
     * Return a Pager containing Annotation entities belonging to the DescriptionElementBase instance supplied, optionally filtered by MarkerType
25
     * @param annotatedObj The object that "owns" the annotations returned
26
     * @param status Only return annotations which are marked with a Marker of this type (can be null to return all annotations)
27
     * @param pageSize The maximum number of terms returned (can be null for all annotations)
28
     * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
29
     * @param orderHints may be null
30
     * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
31
     * @return a Pager of Annotation entities
32
     */
33
    //TODO check if this is in base service already, it was copied from DescriptionService
34
    public Pager<Annotation> getDescriptionElementAnnotations(DescriptionElementBase annotatedObj, MarkerType status, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
35

    
36

    
37
}
(27-27/95)