(no commit message)
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / IReferenceService.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.api.service;
11
12 import java.util.Collection;
13 import java.util.List;
14 import java.util.UUID;
15 import java.util.Map;
16
17 import eu.etaxonomy.cdm.model.reference.ReferenceBase;
18
19
20 public interface IReferenceService extends IIdentifiableEntityService<ReferenceBase>{
21
22 /** find reference by UUID**/
23 public abstract ReferenceBase getReferenceByUuid(UUID uuid);
24
25 /** save a reference and return its UUID**/
26 public abstract UUID saveReference(ReferenceBase reference);
27
28 /** save a collection of reference and return its UUID**/
29 public abstract Map<UUID, ReferenceBase> saveReferenceAll(Collection<ReferenceBase> referenceCollection);
30
31 public abstract List<ReferenceBase> getAllReferences(int limit, int start);
32
33
34 }