Add LDAP authentication and enabling Spring logging
[proteocache.git] / server / compbio / controllers / DocumentationController.java
1 package compbio.controllers;
2
3 import java.util.Map;
4
5 import org.springframework.stereotype.Controller;
6 import org.springframework.web.bind.annotation.RequestMapping;
7 import org.springframework.web.bind.annotation.RequestMethod;
8
9 //import org.springframework.web.bind.annotation.RequestParam;
10
11 /**
12  * @author Alexander Sherstnev
13  * @author Natasha Sherstneva
14  */
15 @Controller
16 public class DocumentationController extends BasicController {
17
18         @RequestMapping(value = "/help/overview", method = RequestMethod.GET)
19         public String formOverviewPage(Map<String, Object> model) {
20                 model.put("username", getPrincipalName());
21                 if (isUserRole())
22                         model.put("permissions", "user_role");
23                 return "help/Overview";
24         }
25
26         @RequestMapping(value = "/help/howto", method = RequestMethod.GET)
27         public String formHowtoPage(Map<String, Object> model) {
28                 model.put("username", getPrincipalName());
29                 if (isUserRole())
30                         model.put("permissions", "user_role");
31                 return "support/Notimplemented";
32         }
33
34         @RequestMapping(value = "/help/doc", method = RequestMethod.GET)
35         public String formDocPage(Map<String, Object> model) {
36                 model.put("username", getPrincipalName());
37                 if (isUserRole())
38                         model.put("permissions", "user_role");
39                 return "support/Notimplemented";
40         }
41
42         @RequestMapping(value = "/help/javadoc", method = RequestMethod.GET)
43         public String formJavadoc(Map<String, Object> model) {
44                 model.put("username", getPrincipalName());
45                 if (isUserRole())
46                         model.put("permissions", "user_role");
47                 return "support/Notimplemented";
48         }
49
50 }