Search for specific references implemented (getReferencesByTitle)
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / IdentifiableServiceBase.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
14 import org.apache.log4j.Logger;
15
16 import eu.etaxonomy.cdm.model.common.CdmBase;
17 import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
18 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
19 import eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao;
20
21 public abstract class IdentifiableServiceBase<T extends IdentifiableEntity> extends ServiceBase<T>
22 implements IIdentifiableEntityService<T>{
23 static Logger logger = Logger.getLogger(IdentifiableServiceBase.class);
24 // protected IIdentifiableDao<T> dao;
25 //
26 // protected void setEntityDao(IIdentifiableDao<T> dao){
27 // this.dao=dao;
28 // }
29
30 protected List<T> findByTitle(String name) {
31 // return ((IIdentifiableDao)dao).findByName(name);
32 return null;
33 }
34
35 protected List<T> findCdmObjectsByTitle(String title){
36 return ((IIdentifiableDao)dao).findByTitle(title);
37 }
38
39 protected List<T> findCdmObjectsByTitle(String title, Class<T> clazz){
40 return null;
41 }
42 protected List<T> findCdmObjectsByTitle(String title, CdmBase sessionObject){
43 return ((IIdentifiableDao)dao).findByTitle(title, sessionObject);
44 }
45
46 }