com.mycompany.controller
Class UserController

java.lang.Object
  extended by com.mycompany.controller.AbstractController
      extended by com.mycompany.controller.UserController
All Implemented Interfaces:
java.io.Serializable

public class UserController
extends AbstractController

Controller class for user-related functionality.

Author:
Ian Hlavats (ian@tarantulaconsulting.com)
See Also:
Serialized Form

Constructor Summary
UserController()
           
 
Method Summary
 User findUser(java.lang.String username, java.lang.String password)
           
 java.util.List<java.lang.String> getThemes()
           
 User getUser()
          Returns the currently logged in user.
 java.lang.String getUserTheme()
           
 void handleClick(javax.faces.event.ActionEvent event)
           
 boolean isUserPresent(User user)
           
 void setActiveUsers(ActiveUsers activeUsers)
           
 void setUserService(UserService userService)
           
 void updateUserTheme(javax.faces.event.AjaxBehaviorEvent event)
           
 
Methods inherited from class com.mycompany.controller.AbstractController
setUserSession
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserController

public UserController()
Method Detail

findUser

public User findUser(java.lang.String username,
                     java.lang.String password)

getThemes

public java.util.List<java.lang.String> getThemes()

getUser

public User getUser()
Returns the currently logged in user.

Returns:
A User object.

getUserTheme

public java.lang.String getUserTheme()

handleClick

public void handleClick(javax.faces.event.ActionEvent event)

isUserPresent

public boolean isUserPresent(User user)

setActiveUsers

public void setActiveUsers(ActiveUsers activeUsers)

setUserService

public void setUserService(UserService userService)

updateUserTheme

public void updateUserTheme(javax.faces.event.AjaxBehaviorEvent event)