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
.Collection
;
13 import java
.util
.List
;
15 import java
.util
.UUID
;
17 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
18 import eu
.etaxonomy
.cdm
.model
.common
.OrderedTermVocabulary
;
19 import eu
.etaxonomy
.cdm
.model
.common
.ReferencedEntityBase
;
20 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
21 import eu
.etaxonomy
.cdm
.model
.name
.*;
23 public interface INameService
extends IIdentifiableEntityService
<TaxonNameBase
> {
29 public abstract TaxonNameBase
getTaxonNameByUuid(UUID uuid
);
35 public abstract UUID
saveTaxonName(TaxonNameBase taxonName
);
38 * Saves a collection of TaxonNames and return its UUID@param taxonCollection
41 public abstract Map
<UUID
, TaxonNameBase
> saveTaxonNameAll(Collection
<TaxonNameBase
> taxonCollection
);
43 public Map
<UUID
, TypeDesignationBase
> saveTypeDesignationAll(Collection
<TypeDesignationBase
> typeDesignationCollection
);
45 public Map
<UUID
, ReferencedEntityBase
> saveReferencedEntitiesAll(Collection
<ReferencedEntityBase
> referencedEntityCollection
);
47 public Map
<UUID
, HomotypicalGroup
> saveAllHomotypicalGroups(Collection
<HomotypicalGroup
> homotypicalGroups
);
54 public abstract List
<TaxonNameBase
> getAllNames(int limit
, int start
);
56 public abstract List
<NomenclaturalStatus
> getAllNomenclaturalStatus(int limit
, int start
);
58 public abstract List
<TypeDesignationBase
> getAllTypeDesignations(int limit
, int start
);
64 public abstract List
<TaxonNameBase
> getNamesByName(String name
);
68 * @param sessionObject An object that is attached to the session before executing the query
71 public abstract List
getNamesByName(String name
, CdmBase sessionObject
);
73 // TODO: Remove getNamesByName() methods. Use findNamesByTitle() instead.
75 public abstract List
findNamesByTitle(String title
);
77 public abstract List
findNamesByTitle(String title
, CdmBase sessionObject
);
79 public List
<HomotypicalGroup
> getAllHomotypicalGroups(int limit
, int start
);
85 public abstract OrderedTermVocabulary
<Rank
> getRankVocabulary();
88 * Returns all NomenclaturalStatusTypes.
91 public abstract TermVocabulary
<NomenclaturalStatusType
> getStatusTypeVocabulary();
95 * Returns all NameRelationshipTypes.
98 public abstract TermVocabulary
<NameRelationshipType
> getNameRelationshipTypeVocabulary();