merge-update from trunk
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / FeatureTreeListPortalController.java
1 // $Id$
2 /**
3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.cdm.remote.controller;
11
12 import java.util.Arrays;
13 import java.util.List;
14
15 import org.springframework.stereotype.Controller;
16 import org.springframework.web.bind.annotation.RequestMapping;
17
18 /**
19 * @author a.kohlbecker
20 * @date Jun 24, 2013
21 *
22 */
23 @Controller
24 @RequestMapping(value = {"/portal/featureTree"})
25 public class FeatureTreeListPortalController extends FeatureTreeListController {
26
27 private static final List<String> FEATURETREE_INIT_STRATEGY = Arrays.asList(
28 new String[]{
29 "representations",
30 "root.feature.representations",
31 "root.childNodes.feature.representations"
32 });
33
34 public FeatureTreeListPortalController() {
35 setInitializationStrategy(FEATURETREE_INIT_STRATEGY);
36 }
37
38 }