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
.List
;
13 import java
.util
.Collection
;
15 import java
.util
.UUID
;
17 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
18 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
19 import eu
.etaxonomy
.cdm
.model
.common
.LanguageStringBase
;
20 import eu
.etaxonomy
.cdm
.model
.common
.Representation
;
21 import eu
.etaxonomy
.cdm
.model
.common
.VersionableEntity
;
24 public interface ICommonService
extends IService
<CdmBase
>{
26 // /** find cdmBase by UUID**/
27 // public abstract CdmBase getCdmBaseByUuid(UUID uuid);
29 // /** save a reference and return its UUID**/
30 // public abstract UUID saveCdmBase(CdmBase cdmBase);
32 /** find cdmBase by UUID**/
33 public abstract ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
);
35 public Map
<UUID
, Representation
> saveRepresentationsAll(Collection
<Representation
> representations
);
37 // public Map<UUID, LanguageStringBase> saveLanguageStringsAll(Collection<LanguageStringBase> languageStringBases);
38 public void saveLanguageDataAll(Collection
<VersionableEntity
> languageData
);
40 public List
<Representation
> getAllRepresentations(int limit
, int start
);