Project

General

Profile

« Previous | Next » 

Revision 6eccaa42

Added by Patrick Plitzner over 8 years ago

Extend media gathering for taxon specimens

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IOccurrenceService.java
48 48
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
49 49
import eu.etaxonomy.cdm.model.occurrence.DeterminationEvent;
50 50
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
51
import eu.etaxonomy.cdm.model.occurrence.MediaSpecimen;
51 52
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
52 53
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
53 54
import eu.etaxonomy.cdm.model.taxon.Taxon;
......
111 112
     */
112 113
    public Pager<Media> getMedia(SpecimenOrObservationBase occurence, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
113 114

  
115
    /**
116
     * Returns all media attached to this occurence and its children. Also takes
117
     * {@link MediaSpecimen} and molecular images into account.
118
     *
119
     * @param occurence the occurence and its children from which the media to get
120
     * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based)
121
     * @param propertyPaths properties to initialize - see {@link IBeanInitializer#initialize(Object, List)}
122
     * @return a Pager of media instances
123
     */
124
    public Pager<Media> getMediainHierarchy(SpecimenOrObservationBase rootOccurence, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
125

  
114 126
    /**
115 127
     * Returns a count of determinations that have been made for a given occurence and for a given taxon concept
116 128
     *

Also available in: Unified diff