1 |
b498076a
|
ben.clark
|
package eu.etaxonomy.cdm.api.service;
|
2 |
|
|
|
3 |
|
|
import java.util.List;
|
4 |
|
|
import java.util.Map;
|
5 |
|
|
import java.util.Set;
|
6 |
0c5f35ba
|
Andreas Müller
|
import java.util.UUID;
|
7 |
b498076a
|
ben.clark
|
|
8 |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
9 |
|
|
import org.springframework.stereotype.Service;
|
10 |
|
|
import org.springframework.transaction.annotation.Propagation;
|
11 |
|
|
import org.springframework.transaction.annotation.Transactional;
|
12 |
|
|
|
13 |
0c5f35ba
|
Andreas Müller
|
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;
|
14 |
b498076a
|
ben.clark
|
import eu.etaxonomy.cdm.model.description.DescriptionBase;
|
15 |
|
|
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
|
16 |
0c5f35ba
|
Andreas Müller
|
import eu.etaxonomy.cdm.model.description.DescriptiveSystemRole;
|
17 |
b498076a
|
ben.clark
|
import eu.etaxonomy.cdm.model.description.Feature;
|
18 |
|
|
import eu.etaxonomy.cdm.model.description.WorkingSet;
|
19 |
0c5f35ba
|
Andreas Müller
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
20 |
b498076a
|
ben.clark
|
import eu.etaxonomy.cdm.persistence.dao.description.IWorkingSetDao;
|
21 |
|
|
|
22 |
|
|
@Service
|
23 |
77b4a247
|
Andreas Kohlbecker
|
@Transactional(readOnly = false)
|
24 |
b498076a
|
ben.clark
|
public class WorkingSetService extends
|
25 |
|
|
AnnotatableServiceBase<WorkingSet, IWorkingSetDao> implements IWorkingSetService {
|
26 |
|
|
|
27 |
|
|
@Override
|
28 |
|
|
@Autowired
|
29 |
|
|
protected void setDao(IWorkingSetDao dao) {
|
30 |
|
|
this.dao = dao;
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
public Map<DescriptionBase, Set<DescriptionElementBase>> getDescriptionElements(WorkingSet workingSet, Set<Feature> features, Integer pageSize, Integer pageNumber,
|
34 |
|
|
List<String> propertyPaths) {
|
35 |
|
|
return dao.getDescriptionElements(workingSet, features, pageSize, pageNumber, propertyPaths);
|
36 |
|
|
}
|
37 |
0c5f35ba
|
Andreas Müller
|
|
38 |
|
|
@Override
|
39 |
|
|
public <T extends DescriptionElementBase> Map<UuidAndTitleCache, Map<UUID, Set<T>>> getTaxonFeatureDescriptionElementMap(
|
40 |
4acb2920
|
Andreas Müller
|
Class<T> clazz, UUID workingSetUuid, DescriptiveSystemRole role) {
|
41 |
|
|
return dao.getTaxonFeatureDescriptionElementMap(clazz, workingSetUuid, role);
|
42 |
0c5f35ba
|
Andreas Müller
|
}
|
43 |
b498076a
|
ben.clark
|
}
|