com.cloudseal.client.example
Class ExampleController
java.lang.Object
com.cloudseal.client.example.ExampleController
@Controller
public class ExampleController
- extends Object
|
Method Summary |
org.springframework.web.servlet.ModelAndView |
aboutMe(Principal principal)
|
org.springframework.web.servlet.ModelAndView |
adminsOnly()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleController
public ExampleController()
aboutMe
@PreAuthorize(value="isAuthenticated()")
@RequestMapping(value="/about_me",
method=GET)
public org.springframework.web.servlet.ModelAndView aboutMe(Principal principal)
throws Exception
- Throws:
Exception
adminsOnly
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/admin",
method=GET)
public org.springframework.web.servlet.ModelAndView adminsOnly()
Copyright © 2012. All Rights Reserved.