org.romaframework.module.users
Class SimpleAccountBinder

java.lang.Object
  extended by org.romaframework.module.users.SimpleAccountBinder
All Implemented Interfaces:
AccountBinder

public class SimpleAccountBinder
extends java.lang.Object
implements AccountBinder

Default implementation of AccountBinder. Binds an LDAP user to a BaseAccount with the same name. Requires a BaseAccount in the database for each LDAP user

Author:
Luigi Dell'Aquila

Constructor Summary
SimpleAccountBinder()
           
 
Method Summary
 BaseAccount getAccount(java.lang.String authenticationName, java.util.Map<?,?> authenticationResult)
          returns a BaseAccount corresponding to an LDAP user
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAccountBinder

public SimpleAccountBinder()
Method Detail

getAccount

public BaseAccount getAccount(java.lang.String authenticationName,
                              java.util.Map<?,?> authenticationResult)
Description copied from interface: AccountBinder
returns a BaseAccount corresponding to an LDAP user

Specified by:
getAccount in interface AccountBinder
Parameters:
authenticationName - the LDAP user name
authenticationResult - the result of the authentication call
Returns:
the BaseAccount corresponding to the LDAP user logging in