removed unused imports
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / IDescriptionService.java
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
10 package eu.etaxonomy.cdm.api.service;
11
12 import java.util.Collection;
13 import java.util.List;
14 import java.util.Map;
15 import java.util.UUID;
16
17 import eu.etaxonomy.cdm.model.common.TermVocabulary;
18 import eu.etaxonomy.cdm.model.common.VersionableEntity;
19 import eu.etaxonomy.cdm.model.description.DescriptionBase;
20 import eu.etaxonomy.cdm.model.description.Feature;
21 import eu.etaxonomy.cdm.model.description.FeatureNode;
22 import eu.etaxonomy.cdm.model.description.FeatureTree;
23
24 public interface IDescriptionService extends IIdentifiableEntityService<DescriptionBase> {
25
26 /**
27 * @param uuid
28 * @return
29 */
30 public abstract DescriptionBase getDescriptionBaseByUuid(UUID uuid);
31
32 /**
33 * Persists a <code>Description</code>
34 * @param description
35 * @return
36 */
37 public abstract UUID saveDescription(DescriptionBase description);
38
39 /**
40 * Persists a <code>FeatureTree</code>
41 * @param tree
42 * @return
43 */
44 public abstract UUID saveFeatureTree(FeatureTree tree);
45 public abstract void saveFeatureDataAll(Collection<VersionableEntity<?>> featureData);
46 public abstract Map<UUID, FeatureTree> saveFeatureTreeAll(Collection<FeatureTree> trees);
47 public abstract Map<UUID, FeatureNode> saveFeatureNodeAll(Collection<FeatureNode> nodes);
48
49 public abstract List<FeatureTree> getFeatureTreesAll();
50 public abstract List<FeatureNode> getFeatureNodesAll();
51
52 public abstract TermVocabulary<Feature> getDefaultFeatureVocabulary();
53 public abstract TermVocabulary<Feature> getFeatureVocabulary(UUID uuid);
54
55 }