2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.api
.service
;
12 import java
.util
.List
;
14 import eu
.etaxonomy
.cdm
.model
.description
.PresenceAbsenceTerm
;
15 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
16 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
17 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
18 import eu
.etaxonomy
.cdm
.model
.term
.DefinedTermBase
;
19 import eu
.etaxonomy
.cdm
.model
.term
.OrderedTermVocabulary
;
20 import eu
.etaxonomy
.cdm
.model
.term
.TermVocabulary
;
26 public interface ILocationService
extends IService
<DefinedTermBase
> {
29 public static enum NamedAreaVocabularyType
{
30 TDWG_AREA
, COUNTRY
, WATERBODY
, CONTINENT
34 * Returns a list of NamedArea Types "TDWG Areas", "ISO Country Codes"
38 public List
<NamedAreaVocabularyType
> getNamedAreaVocabularyTypes();
41 * - these would be top-level areas for nested area vocabularies, e.g. North America and Europe, but NOT USA, Germany - alternatively:
43 * @param vocabularyType
45 * @deprecated use TermService#getVocabulary(VocabularyType) instead
48 public OrderedTermVocabulary
<NamedArea
> getNamedAreaVocabulary(NamedAreaVocabularyType vocabularyType
);
53 * @deprecated use TermService#getVocabulary(VocabularyType) instead
56 public TermVocabulary
<NamedAreaType
> getNamedAreaTypeVocabulary();
60 * @deprecated use TermService#getVocabulary(VocabularyType) instead
63 public OrderedTermVocabulary
<NamedAreaLevel
> getNamedAreaLevelVocabulary();
68 * @deprecated use TermService#getVocabulary(VocabularyType) instead
71 public OrderedTermVocabulary
<PresenceAbsenceTerm
> getPresenceAbsenceTermVocabulary();
76 public List
<NamedArea
> getTopLevelNamedAreasByVocabularyType(NamedAreaVocabularyType vocabularyType
);