org.domain.rhims.backing
Class LoginBackingBean

java.lang.Object
  extended by org.domain.rhims.backing.LoginBackingBean
All Implemented Interfaces:
Login

@Name(value="login")
public class LoginBackingBean
extends java.lang.Object
implements Login

This class is used as a backing bean for the Login page. It maintains a reference to the UserManager for performing user validation. Its Seam name is "login".

Author:
Mitch Williams

Constructor Summary
LoginBackingBean()
           
 
Method Summary
 boolean login()
          This method performs the actual user authentication based on the username and password that are obtained from the Credentials.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginBackingBean

public LoginBackingBean()
Method Detail

login

public boolean login()
This method performs the actual user authentication based on the username and password that are obtained from the Credentials. It then adds roles to the Identity of this user for this session based on what type of user logged in (i.e. "admin" for an Administrator).

Specified by:
login in interface Login