org.cyclopsgroup.doorman.service.storage
Class StoredUser

java.lang.Object
  extended by org.cyclopsgroup.doorman.service.storage.StoredUser

public class StoredUser
extends Object

POJO of a user in database

Author:
Jiaqi Guo

Field Summary
static String QUERY_BY_NAME_OR_ID
          Name of the query that looks for user based on given user name
 
Constructor Summary
StoredUser()
           
 
Method Summary
 void copyFrom(org.cyclopsgroup.doorman.api.User from)
          Copy values from given User POJO
 String getActivationToken()
          Get the token used for user activation.
 String getCountryCode()
           
 org.joda.time.DateTime getCreationDate()
           
 String getDisplayName()
           
 String getDomainName()
           
 String getEmailAddress()
           
 String getLanguageCode()
           
 org.joda.time.DateTime getLastModified()
           
 org.joda.time.DateTime getLastVisit()
           
 String getPassword()
           
 PasswordStrategy getPasswordStrategy()
           
 String getTimeZoneId()
           
 String getUserId()
           
 String getUserName()
           
 UserState getUserState()
           
 org.cyclopsgroup.doorman.api.UserType getUserType()
           
 void setActivationToken(String activationToken)
          Set activation token of user
 void setCountryCode(String countryCode)
           
 void setCreationDate(org.joda.time.DateTime creationDate)
           
 void setDisplayName(String displayName)
           
 void setDomainName(String domainName)
           
 void setEmailAddress(String emailAddress)
           
 void setLanguageCode(String languageCode)
           
 void setLastModified(org.joda.time.DateTime lastModified)
           
 void setLastVisit(org.joda.time.DateTime lastVisit)
           
 void setPassword(String password)
           
 void setPasswordStrategy(PasswordStrategy passwordStrategy)
           
 void setTimeZoneId(String timeZoneId)
           
 void setUserId(String userId)
           
 void setUserName(String userName)
           
 void setUserState(UserState userState)
           
 void setUserType(org.cyclopsgroup.doorman.api.UserType userType)
           
 org.cyclopsgroup.doorman.api.User toUser()
          Create User POJO from itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_BY_NAME_OR_ID

public static final String QUERY_BY_NAME_OR_ID
Name of the query that looks for user based on given user name

See Also:
Constant Field Values
Constructor Detail

StoredUser

public StoredUser()
Method Detail

copyFrom

public void copyFrom(org.cyclopsgroup.doorman.api.User from)
Copy values from given User POJO

Parameters:
from - Given user pojo

getActivationToken

public String getActivationToken()
Get the token used for user activation. If user is already activated, token value is null

Returns:
Token used to activate user

getCountryCode

public String getCountryCode()
Returns:
Country code of country that user prefers

getCreationDate

public org.joda.time.DateTime getCreationDate()
Returns:
Creation date

getDisplayName

public String getDisplayName()
Returns:
Display name of user

getDomainName

public String getDomainName()
Returns:
Domain name which indicates where the user was registered in the very beginning

getEmailAddress

public String getEmailAddress()
Returns:
Email address of the user

getLanguageCode

public String getLanguageCode()
Returns:
Language code of language that user prefers

getLastModified

public org.joda.time.DateTime getLastModified()
Returns:
Last modified timestamp of user

getLastVisit

public org.joda.time.DateTime getLastVisit()
Returns:
Last visit time of the user

getPassword

public String getPassword()
Returns:
Password for login

getPasswordStrategy

public PasswordStrategy getPasswordStrategy()
Returns:
The way password is calculated

getTimeZoneId

public String getTimeZoneId()
Returns:
Time zone user lives in

getUserId

public String getUserId()
Returns:
Internal user identifier of user

getUserName

public String getUserName()
Returns:
Unique name of user

getUserState

public UserState getUserState()
Returns:
State of user model

getUserType

public org.cyclopsgroup.doorman.api.UserType getUserType()
Returns:
Type of user

setActivationToken

public void setActivationToken(String activationToken)
Set activation token of user

Parameters:
activationToken - Activation token to set

setCountryCode

public void setCountryCode(String countryCode)
Parameters:
countryCode - getCountryCode()

setCreationDate

public void setCreationDate(org.joda.time.DateTime creationDate)
Parameters:
creationDate - getCreationDate()

setDisplayName

public void setDisplayName(String displayName)
Parameters:
displayName - getDisplayName()

setDomainName

public void setDomainName(String domainName)
Parameters:
domainName - getDomainName()

setEmailAddress

public void setEmailAddress(String emailAddress)
Parameters:
emailAddress - getEmailAddress()

setLanguageCode

public void setLanguageCode(String languageCode)
Parameters:
languageCode - getLanguageCode()

setLastModified

public void setLastModified(org.joda.time.DateTime lastModified)
Parameters:
lastModified - getLastModified()

setLastVisit

public void setLastVisit(org.joda.time.DateTime lastVisit)
Parameters:
lastVisit - getLastVisit()

setPassword

public void setPassword(String password)
Parameters:
password - getPassword()

setPasswordStrategy

public void setPasswordStrategy(PasswordStrategy passwordStrategy)
Parameters:
passwordStrategy - getPasswordStrategy()

setTimeZoneId

public void setTimeZoneId(String timeZoneId)
Parameters:
timeZoneId - Time zone user lives in

setUserId

public void setUserId(String userId)
Parameters:
userId - getUserId()

setUserName

public void setUserName(String userName)
Parameters:
userName - getUserName()

setUserState

public void setUserState(UserState userState)
Parameters:
userState - getUserState()

setUserType

public void setUserType(org.cyclopsgroup.doorman.api.UserType userType)
Parameters:
userType - getUserType()

toUser

public org.cyclopsgroup.doorman.api.User toUser()
Create User POJO from itself

Returns:
User POJO


Copyright © 2010-2012. All Rights Reserved.