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
.PresenceAbsenceTerm
;
19 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
20 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
21 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
28 public interface ILocationService
extends IService
<DefinedTermBase
> {
31 public static enum NamedAreaVocabularyType
{
32 TDWG_AREA
, COUNTRY
, WATERBODY
, CONTINENT
36 * Returns a list of NamedArea Types "TDWG Areas", "ISO Country Codes"
40 public List
<NamedAreaVocabularyType
> getNamedAreaVocabularyTypes();
43 * - these would be top-level areas for nested area vocabularies, e.g. North America and Europe, but NOT USA, Germany - alternatively:
45 * @param vocabularyType
47 * @deprecated use TermService#getVocabulary(VocabularyType) instead
49 public OrderedTermVocabulary
<NamedArea
> getNamedAreaVocabulary(NamedAreaVocabularyType vocabularyType
);
54 * @deprecated use TermService#getVocabulary(VocabularyType) instead
56 public TermVocabulary
<NamedAreaType
> getNamedAreaTypeVocabulary();
60 * @deprecated use TermService#getVocabulary(VocabularyType) instead
62 public OrderedTermVocabulary
<NamedAreaLevel
> getNamedAreaLevelVocabulary();
67 * @deprecated use TermService#getVocabulary(VocabularyType) instead
69 public OrderedTermVocabulary
<PresenceAbsenceTerm
> getPresenceAbsenceTermVocabulary();
74 public List
<NamedArea
> getTopLevelNamedAreasByVocabularyType(NamedAreaVocabularyType vocabularyType
);