solving lazy loading exception
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / ICollectionService.java
index a4351dc3ce093b16f4f254d3901543da229bdeb3..16b8955d0bec546bf0ad399a8b2f093f6296f3ca 100644 (file)
@@ -1,8 +1,18 @@
+/**\r
+* Copyright (C) 2009 EDIT\r
+* European Distributed Institute of Taxonomy\r
+* http://www.e-taxonomy.eu\r
+*\r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/ \r
+\r
 package eu.etaxonomy.cdm.api.service;\r
 \r
 import java.util.List;\r
 \r
 import eu.etaxonomy.cdm.api.service.pager.Pager;\r
+import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;\r
 import eu.etaxonomy.cdm.model.occurrence.Collection;\r
 import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;\r
 \r
@@ -26,4 +36,11 @@ public interface ICollectionService extends  IIdentifiableEntityService<Collectio
         * @see <a href="http://lucene.apache.org/java/2_4_0/queryparsersyntax.html">Apache Lucene - Query Parser Syntax</a>\r
         */\r
        public Pager<Collection> search(Class<? extends Collection> clazz, String query, Integer pageSize,Integer pageNumber, List<OrderHint> orderHints,List<String> propertyPaths);\r
+       \r
+       /**\r
+        * Return a list of collections matching the given code\r
+        * @param code \r
+        * @return a List of Collection objects\r
+        */\r
+       public List<Collection> searchByCode(String code);\r
 }\r