org.telscenter.sail.webapp.domain.authentication
Interface MutableUserDetails

All Superinterfaces:
MutableUserDetails, Persistable, Serializable, org.springframework.security.userdetails.UserDetails

public interface MutableUserDetails
extends MutableUserDetails

TELS Portal version of MutableUserDetails interface

Version:
$Id$
Author:
Hiroki Terashima

Method Summary
 String getCoreUsername()
           
 String getFirstname()
           
 HashMap<String,Object> getInfo()
           
 String getLastname()
           
 String getNextUsernameSuffix(String currentUsernameSuffix)
          Get the next username suffix
 Integer getNumberOfLogins()
          Returns the number of times the user has logined into the system
 Date getSignupdate()
           
 String[] getUsernameSuffixes()
          In case username is not unique, append an item from the list of suffices.
 void incrementNumberOfLogins()
          Increments the number of times the user has logined into the system
 void setFirstname(String firstname)
           
 void setLastLoginTime(Date lastLoginTime)
          Sets the date of the most recent login as lastLoginTime
 void setLastname(String lastname)
           
 void setNumberOfLogins(Integer numberOfLogins)
          Sets the number of times the user has logined into the system
 void setSignupdate(Date signupdate)
           
 
Methods inherited from interface net.sf.sail.webapp.domain.authentication.MutableUserDetails
addAuthority, getEmailAddress, getId, getNumberOfRecentFailedLoginAttempts, getRecentFailedLoginTime, getResetPasswordKey, getResetPasswordRequestTime, hasGrantedAuthority, incrementNumberOfRecentFailedLoginAttempts, setAuthorities, setEmailAddress, setEnabled, setNumberOfRecentFailedLoginAttempts, setPassword, setRecentFailedLoginTime, setResetPasswordKey, setResetPasswordRequestTime, setUsername
 
Methods inherited from interface org.springframework.security.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
 

Method Detail

getFirstname

String getFirstname()

setFirstname

void setFirstname(String firstname)

getLastname

String getLastname()

setLastname

void setLastname(String lastname)

getSignupdate

Date getSignupdate()

setSignupdate

void setSignupdate(Date signupdate)

getInfo

HashMap<String,Object> getInfo()
Returns:
this user's attributes in form of a HashMap

getCoreUsername

String getCoreUsername()
Returns:
this user's 'root' username. This does not mean it will be the username, (eg if it's not unique)

getUsernameSuffixes

String[] getUsernameSuffixes()
In case username is not unique, append an item from the list of suffices.

Returns:
array of suffices to add to end of username to make it unique

getNextUsernameSuffix

String getNextUsernameSuffix(String currentUsernameSuffix)
Get the next username suffix

Parameters:
currentUsernameSuffix -
Returns:
a String containing the next username suffix

getNumberOfLogins

Integer getNumberOfLogins()
Returns the number of times the user has logined into the system

Returns:
Integer of times

setNumberOfLogins

void setNumberOfLogins(Integer numberOfLogins)
Sets the number of times the user has logined into the system

Parameters:
numberOfLogins - 1 more time

setLastLoginTime

void setLastLoginTime(Date lastLoginTime)
Sets the date of the most recent login as lastLoginTime

Parameters:
lastLoginTime - 1 more time

incrementNumberOfLogins

void incrementNumberOfLogins()
Increments the number of times the user has logined into the system

Parameters:
numberOfLogins -


Copyright © 2012. All Rights Reserved.