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.Set;
|
16
|
import java.util.UUID;
|
17
|
|
18
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
19
|
import eu.etaxonomy.cdm.model.common.Language;
|
20
|
import eu.etaxonomy.cdm.model.common.LanguageString;
|
21
|
import eu.etaxonomy.cdm.model.common.LanguageStringBase;
|
22
|
import eu.etaxonomy.cdm.model.common.Representation;
|
23
|
import eu.etaxonomy.cdm.model.common.TermBase;
|
24
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
25
|
import eu.etaxonomy.cdm.model.common.VersionableEntity;
|
26
|
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
27
|
|
28
|
public interface ITermService extends IService<DefinedTermBase> {
|
29
|
|
30
|
public abstract DefinedTermBase getTermByUri(String uri);
|
31
|
|
32
|
public abstract DefinedTermBase getTermByUuid(UUID uuid);
|
33
|
|
34
|
/**
|
35
|
* @param limit
|
36
|
* @param start
|
37
|
* @return
|
38
|
*/
|
39
|
public abstract List<DefinedTermBase> getAllDefinedTerms(int limit, int start);
|
40
|
|
41
|
public abstract TermVocabulary getVocabulary(UUID vocabularyUuid);
|
42
|
|
43
|
public abstract Set<TermVocabulary> listVocabularies(Class termClass);
|
44
|
|
45
|
|
46
|
/**
|
47
|
* @param termBase
|
48
|
* @return
|
49
|
*/
|
50
|
public abstract UUID saveTerm(DefinedTermBase termBase);
|
51
|
|
52
|
public Map<UUID, DefinedTermBase> saveTermsAll(Collection<DefinedTermBase> termBaseCollection);
|
53
|
|
54
|
public List<TermVocabulary<DefinedTermBase>> getAllTermVocabularies(int limit, int start);
|
55
|
|
56
|
public Map<UUID, TermVocabulary<DefinedTermBase>>
|
57
|
saveTermVocabulariesAll(Collection<TermVocabulary<DefinedTermBase>> termVocabularies);
|
58
|
|
59
|
public List<Representation> getAllRepresentations(int limit, int start);
|
60
|
|
61
|
public Map<UUID, LanguageStringBase> saveLanguageDataAll(Collection<LanguageStringBase> languageData);
|
62
|
|
63
|
public UUID saveLanguageData(LanguageStringBase languageData);
|
64
|
|
65
|
public List<LanguageString> getAllLanguageStrings(int limit, int start);
|
66
|
|
67
|
public Map<UUID, LanguageStringBase>
|
68
|
saveLanguageStringBasesAll(Collection<LanguageStringBase> languageStringBases);
|
69
|
|
70
|
public Language getLanguageByIso(String iso639);
|
71
|
|
72
|
}
|