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
.common
.DefinedTermBase
;
15 import eu
.etaxonomy
.cdm
.model
.common
.OrderedTermVocabulary
;
16 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
17 import eu
.etaxonomy
.cdm
.model
.description
.PresenceAbsenceTerm
;
18 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
19 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
20 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
27 public interface ILocationService
extends IService
<DefinedTermBase
> {
30 public static enum NamedAreaVocabularyType
{
31 TDWG_AREA
, COUNTRY
, WATERBODY
, CONTINENT
35 * Returns a list of NamedArea Types "TDWG Areas", "ISO Country Codes"
39 public List
<NamedAreaVocabularyType
> getNamedAreaVocabularyTypes();
42 * - these would be top-level areas for nested area vocabularies, e.g. North America and Europe, but NOT USA, Germany - alternatively:
44 * @param vocabularyType
46 * @deprecated use TermService#getVocabulary(VocabularyType) instead
48 public OrderedTermVocabulary
<NamedArea
> getNamedAreaVocabulary(NamedAreaVocabularyType vocabularyType
);
53 * @deprecated use TermService#getVocabulary(VocabularyType) instead
55 public TermVocabulary
<NamedAreaType
> getNamedAreaTypeVocabulary();
59 * @deprecated use TermService#getVocabulary(VocabularyType) instead
61 public OrderedTermVocabulary
<NamedAreaLevel
> getNamedAreaLevelVocabulary();
66 * @deprecated use TermService#getVocabulary(VocabularyType) instead
68 public OrderedTermVocabulary
<PresenceAbsenceTerm
> getPresenceAbsenceTermVocabulary();
73 public List
<NamedArea
> getTopLevelNamedAreasByVocabularyType(NamedAreaVocabularyType vocabularyType
);