1 package eu
.etaxonomy
.cdm
.api
.service
;
8 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
9 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionBase
;
10 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionElementBase
;
11 import eu
.etaxonomy
.cdm
.model
.description
.DescriptiveSystemRole
;
12 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
13 import eu
.etaxonomy
.cdm
.model
.description
.WorkingSet
;
16 public interface IWorkingSetService
extends IAnnotatableService
<WorkingSet
> {
18 * Returns a Map of descriptions each with the descriptionelements that match the supplied features (or all description elements if no features are supplied)
20 * @param workingSet the working set which the descriptions belong to
21 * @param features restrict the returned description elements to those which have features in this set
22 * @param pageSize The maximum number of descriptions returned (can be null for all descriptions that belong to the working set)
23 * @param pageNumber The offset (in pageSize chunks) from the start of the result set (0 - based,
24 * can be null, equivalent of starting at the beginning of the recordset). Descriptions are sorted by titleCache
25 * @param propertyPaths properties to be initialized (applied to the descriptionElements)
28 public Map
<DescriptionBase
, Set
<DescriptionElementBase
>> getDescriptionElements(WorkingSet workingSet
, Set
<Feature
> features
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
);
30 public <T
extends DescriptionElementBase
> Map
<UuidAndTitleCache
, Map
<UUID
, Set
<T
>>> getTaxonFeatureDescriptionElementMap(Class
<T
> clazz
, UUID workingSetUuid
, DescriptiveSystemRole role
);