a little bit documentation
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / ClassificationListController.java
index 6a621ebb551581954995a68c076d236e22aa5cb3..04f10f887ac8e874b3d6cbf9e6527fc3c801af3e 100644 (file)
@@ -18,8 +18,8 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 
-import eu.etaxonomy.cdm.api.service.ITaxonTreeService;
-import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
+import eu.etaxonomy.cdm.api.service.IClassificationService;
+import eu.etaxonomy.cdm.model.taxon.Classification;
 
 /**
  * @author n.hoffmann
@@ -27,15 +27,15 @@ import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
  * @version 1.0
  */
 @Controller
-@RequestMapping(value = {"/classification/"})
-public class ClassificationListController extends BaseListController<TaxonomicTree,ITaxonTreeService> {
+@RequestMapping(value = {"/classification"})
+public class ClassificationListController extends IdentifiableListController<Classification,IClassificationService> {
        
        private static final Logger logger = Logger
                        .getLogger(ClassificationListController.class);
 
 
        protected static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
-                       "reference.authorTeam.titleCache"
+                       "reference.authorTeam"
        });
        
                
@@ -44,7 +44,7 @@ public class ClassificationListController extends BaseListController<TaxonomicTr
         */
        @Override
        @Autowired
-       public void setService(ITaxonTreeService service) {
+       public void setService(IClassificationService service) {
                this.service = service;
        }