Marshall/unmarshall Representations explicitly
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / ICommonService.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.List;
13 import java.util.Collection;
14 import java.util.Map;
15 import java.util.UUID;
16
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;
22
23
24 public interface ICommonService extends IService<CdmBase>{
25 //
26 // /** find cdmBase by UUID**/
27 // public abstract CdmBase getCdmBaseByUuid(UUID uuid);
28 //
29 // /** save a reference and return its UUID**/
30 // public abstract UUID saveCdmBase(CdmBase cdmBase);
31
32 /** find cdmBase by UUID**/
33 public abstract ISourceable getSourcedObjectByIdInSource(Class clazz, String idInSource, String idNamespace);
34
35 public Map<UUID, Representation> saveRepresentationsAll(Collection<Representation> representations);
36
37 // public Map<UUID, LanguageStringBase> saveLanguageStringsAll(Collection<LanguageStringBase> languageStringBases);
38 public void saveLanguageDataAll(Collection<VersionableEntity> languageData);
39
40 public List<Representation> getAllRepresentations(int limit, int start);
41
42
43 }