Groovy Documentation

controllers
Class JsecUserController

java.lang.Object
  controllers.JsecUserController

class JsecUserController

Property Summary
static def allowedMethods

def create

Action to display a form for creating a new user

def delete

Delete a user

def edit

Action to display a user edit form

def editPassword

Action to display a password change form

def index

def list

List all users

def save

Action to save a newly created user to the database

def securityService

def show

Display a user

def update

Action to update a user in the database

def updatePassword

Action to update a password in the database

 
Constructor Summary
JsecUserController()

 
Method Summary
private JsecUser getOrAttachUser(def id)

Returns a JsecUser with the given ID, attached to the current Hibernate session.

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

allowedMethods

static def allowedMethods


create

def create
Action to display a form for creating a new user


delete

def delete
Delete a user


edit

def edit
Action to display a user edit form


editPassword

def editPassword
Action to display a password change form


index

def index


list

def list
List all users


save

def save
Action to save a newly created user to the database


securityService

def securityService


show

def show
Display a user


update

def update
Action to update a user in the database


updatePassword

def updatePassword
Action to update a password in the database


 
Constructor Detail

JsecUserController

JsecUserController()


 
Method Detail

getOrAttachUser

private JsecUser getOrAttachUser(def id)
Returns a JsecUser with the given ID, attached to the current Hibernate session. If the requested ID matches the ID of the logged-in user (if any), the cached JsecUser object (SecurityUtils.subject.principal) is re-attached and returned, otherwise we just call JsecUser.get(id).


 

Groovy Documentation