src.java.org.codehaus.groovy.grails.plugins.springsecurity
Class GrailsUserImpl

Extends Spring Security's User class to set Grails Domain Class at login, to load auth class from context.

author:
T.Yamamoto
author:
Burt Beckwith

Field Summary
 Object domainClass
           
 long serialVersionUID
           
 
Constructor Summary
GrailsUserImpl(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, def authorities, Object user)
            Constructor.
 
Method Summary
Object getDomainClass()
          
 

Constructor Detail

GrailsUserImpl

public GrailsUserImpl(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, def authorities, Object user)
Constructor.
param:
username the username presented to the
DaoAuthenticationProvider
param:
password the password that should be presented to the
DaoAuthenticationProvider
param:
enabled set to true if the user is enabled
param:
accountNonExpired set to true if the account has not
expired
param:
credentialsNonExpired set to true if the credentials
have not expired
param:
accountNonLocked set to true if the account is not
locked
param:
authorities the authorities that should be granted to the caller
if they presented the correct username and password and the user is enabled
param:
user the user domain instance
throws:
IllegalArgumentException if a null value was passed
either as a parameter or as an element in the GrantedAuthority[] array


Method Detail

getDomainClass

public Object getDomainClass()