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
;
14 import java
.util
.UUID
;
17 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceBase
;
20 public interface IReferenceService
extends IIdentifiableEntityService
<ReferenceBase
>{
22 /** find reference by UUID**/
23 public abstract ReferenceBase
getReferenceByUuid(UUID uuid
);
25 /** save a reference and return its UUID**/
26 public abstract UUID
saveReference(ReferenceBase reference
);
28 /** save a collection of reference and return its UUID**/
29 public abstract Map
<UUID
, ReferenceBase
> saveReferenceAll(Collection
<ReferenceBase
> referenceCollection
);
31 public abstract List
<ReferenceBase
> getAllReferences(int limit
, int start
);