(no commit message)
[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.UUID;
13
14 import eu.etaxonomy.cdm.model.common.TermVocabulary;
15 import eu.etaxonomy.cdm.model.description.DescriptionBase;
16 import eu.etaxonomy.cdm.model.description.Feature;
17 import eu.etaxonomy.cdm.model.description.FeatureTree;
18
19 public interface IDescriptionService extends IIdentifiableEntityService<DescriptionBase> {
20
21 /**
22 * @param uuid
23 * @return
24 */
25 public abstract DescriptionBase getDescriptionBaseByUuid(UUID uuid);
26
27 /**
28 * Persists a <code>Description</code>
29 * @param description
30 * @return
31 */
32 public abstract UUID saveDescription(DescriptionBase description);
33
34 /**
35 * Persists a <code>FeatureTree</code>
36 * @param tree
37 * @return
38 */
39 public abstract UUID saveFeatureTree(FeatureTree tree);
40
41 public abstract TermVocabulary<Feature> getDefaultFeatureVocabulary();
42 public abstract TermVocabulary<Feature> getFeatureVocabulary(UUID uuid);
43
44 }