3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.cdm
.api
.service
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
16 import eu
.etaxonomy
.cdm
.model
.common
.OrderedTermVocabulary
;
17 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
18 import eu
.etaxonomy
.cdm
.model
.description
.AbsenceTerm
;
19 import eu
.etaxonomy
.cdm
.model
.description
.PresenceTerm
;
20 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
21 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
22 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
29 public interface ILocationService
extends IService
<DefinedTermBase
> {
32 public static enum NamedAreaVocabularyType
{
33 TDWG_AREA
, COUNTRY
, WATERBODY
, CONTINENT
37 * Returns a list of NamedArea Types "TDWG Areas", "ISO Country Codes"
41 public List
<NamedAreaVocabularyType
> getNamedAreaVocabularyTypes();
44 * - these would be top-level areas for nested area vocabularies, e.g. North America and Europe, but NOT USA, Germany - alternatively:
46 * @param vocabularyType
48 * @deprecated use TermService#getVocabulary(VocabularyType) instead
50 public OrderedTermVocabulary
<NamedArea
> getNamedAreaVocabulary(NamedAreaVocabularyType vocabularyType
);
55 * @deprecated use TermService#getVocabulary(VocabularyType) instead
57 public TermVocabulary
<NamedAreaType
> getNamedAreaTypeVocabulary();
62 * @deprecated use TermService#getVocabulary(VocabularyType) instead
64 public OrderedTermVocabulary
<NamedAreaLevel
> getNamedAreaLevelVocabulary();
69 * @deprecated use TermService#getVocabulary(VocabularyType) instead
71 public OrderedTermVocabulary
<PresenceTerm
> getPresenceTermVocabulary();
76 * @deprecated use TermService#getVocabulary(VocabularyType) instead
78 public OrderedTermVocabulary
<AbsenceTerm
> getAbsenceTermVocabulary();
83 public List
<NamedArea
> getTopLevelNamedAreasByVocabularyType(NamedAreaVocabularyType vocabularyType
);