org.jboss.seam.examples.booking.account
Class CurrentUserManager

java.lang.Object
  extended by org.jboss.seam.examples.booking.account.CurrentUserManager

@SessionScoped
public class CurrentUserManager
extends Object

Exposes the currently logged in user

Author:
Dan Allen

Constructor Summary
CurrentUserManager()
           
 
Method Summary
 User getCurrentAccount()
           
 void onLogin(User user, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentUserManager

public CurrentUserManager()
Method Detail

getCurrentAccount

@Produces
@Authenticated
@Named(value="currentUser")
public User getCurrentAccount()

onLogin

public void onLogin(@Observes@Authenticated
                    User user,
                    javax.servlet.http.HttpServletRequest request)


Copyright © 2011 Seam Framework. All Rights Reserved.