com.cloudseal.client.example
Class ExampleController

java.lang.Object
  extended by com.cloudseal.client.example.ExampleController

@Controller
public class ExampleController
extends Object


Constructor Summary
ExampleController()
           
 
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
 

Constructor Detail

ExampleController

public ExampleController()
Method Detail

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.