站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

UserImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.identity.db
Class UserImpl

java.lang.Object
  extended byorg.jboss.portal.identity.db.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User

User interface implementation.

Version:
$Revision: 5448 $
Author:
Julien Viet , Thomas Heute , Magesh Kumar Bojan

Nested Class Summary
(package private) static class UserImpl.BooleanPropertyAccessor
           
(package private) static class UserImpl.DatePropertyAccessor
           
(package private) static class UserImpl.PropertyAccessor
          An accessor that maps a user field to a property name.
(package private) static class UserImpl.StringPropertyAccessor
           
 
Field Summary
(package private) static java.util.Map ACCESSORS
           
protected  java.util.Map dynamic
           
protected  boolean enabled
           
protected  java.lang.String fakeEmail
           
protected  java.lang.String familyName
           
protected  java.lang.String givenName
           
protected  java.lang.Long key
           
private static org.apache.log4j.Logger log
           
protected  java.lang.String password
           
protected  ProfileMap profile
           
protected  java.lang.String realEmail
           
protected  java.util.Date registrationDate
           
protected  java.util.Set roleNames
           
protected  java.util.Set roles
           
protected  java.lang.String userName
           
protected  boolean viewRealEmail
           
 
Fields inherited from interface org.jboss.portal.identity.User
INFO_USER_EMAIL_FAKE, INFO_USER_EXTRA, INFO_USER_HOMEPAGE, INFO_USER_IM_AIM, INFO_USER_IM_ICQ, INFO_USER_IM_MSNM, INFO_USER_IM_SKYPE, INFO_USER_IM_YIM, INFO_USER_INTERESTS, INFO_USER_LAST_LOGIN_DATE, INFO_USER_LOCALE, INFO_USER_LOCATION, INFO_USER_OCCUPATION, INFO_USER_REGISTRATION_DATE, INFO_USER_SECURITY_ANSWER, INFO_USER_SECURITY_QUESTION, INFO_USER_SIGNATURE, INFO_USER_THEME, INFO_USER_TIME_ZONE_OFFSET, INFO_USER_VIEW_EMAIL_VIEW_REAL
 
Constructor Summary
UserImpl()
           
UserImpl(java.lang.String userName)
           
 
Method Summary
private static java.util.Map buildAccessors()
           
protected  java.util.Map getDynamic()
          Called by Hibernate.
 boolean getEnabled()
          Disable the user.
 java.lang.String getFakeEmail()
           
 java.lang.String getFamilyName()
          The family name.
 java.lang.String getGivenName()
          The given name (firstname).
 java.lang.Object getId()
          The user identifier.
 java.lang.Long getKey()
          Called by hibernate.
 java.util.Date getLastVisitDate()
          Implemented as a dynamic attribute (see #INFO_USER_LAST_LOGIN_DATE).
 java.lang.String getPassword()
           
 java.util.Locale getPreferredLocale()
          Implemented as a dynamic attribute (see #INFO_USER_LOCALE).
 ProfileMap getProfile()
          Returns the user properties.
 java.lang.String getRealEmail()
           
 java.util.Date getRegistrationDate()
           
 java.util.Set getRoleNames()
          Return all the role names of the user.
 java.util.Set getRoles()
          Returns the roles related to this user.
 java.lang.String getSignature()
          Implemented as a dynamic attribute (see #INFO_USER_SIGNATURE).
 java.lang.String getTheme()
          Return the theme set for this user as the app id of the Theme.
 java.lang.String getUserName()
          The user name.
 boolean getViewRealEmail()
           
protected  void setDynamic(java.util.Map dynamic)
          Called by Hibernate.
 void setEnabled(boolean enable)
          Enable the user.
 void setFakeEmail(java.lang.String fakeEmail)
           
 void setFamilyName(java.lang.String familyName)
           
 void setGivenName(java.lang.String givenName)
           
protected  void setKey(java.lang.Long key)
          Called by hibernate.
 void setLastVisitDate(java.util.Date date)
          Set the last visit date on this user.
 void setPassword(java.lang.String password)
           
 void setPreferredLocale(java.util.Locale locale)
          Set the user preferred locale.
 void setRealEmail(java.lang.String realEmail)
           
 void setRegistrationDate(java.util.Date registrationDate)
           
 void setRoles(java.util.Set roles)
          Update the roles.
 void setSignature(java.lang.String signature)
          Set the signature.
 void setTheme(java.lang.String themeId)
          Set the theme for this user.
protected  void setUserName(java.lang.String userName)
          Called by hibernate.
 void setViewRealEmail(boolean viewRealEmail)
           
 java.lang.String toString()
           
 void updatePassword(java.lang.String password)
          Set the password.
 boolean validatePassword(java.lang.String password)
          Return true if the password is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

ACCESSORS

static final java.util.Map ACCESSORS

profile

protected ProfileMap profile

roleNames

protected java.util.Set roleNames

userName

protected java.lang.String userName

givenName

protected java.lang.String givenName

familyName

protected java.lang.String familyName

realEmail

protected java.lang.String realEmail

key

protected java.lang.Long key

enabled

protected boolean enabled

password

protected java.lang.String password

fakeEmail

protected java.lang.String fakeEmail

viewRealEmail

protected boolean viewRealEmail

registrationDate

protected java.util.Date registrationDate

dynamic

protected java.util.Map dynamic

roles

protected java.util.Set roles
Constructor Detail

UserImpl

public UserImpl()

UserImpl

public UserImpl(java.lang.String userName)
Method Detail

buildAccessors

private static java.util.Map buildAccessors()

getKey

public java.lang.Long getKey()
Called by hibernate.


setKey

protected void setKey(java.lang.Long key)
Called by hibernate.


setUserName

protected void setUserName(java.lang.String userName)
Called by hibernate.


getDynamic

protected java.util.Map getDynamic()
Called by Hibernate.


setDynamic

protected void setDynamic(java.util.Map dynamic)
Called by Hibernate.


getId

public java.lang.Object getId()
Description copied from interface: User
The user identifier.

Specified by:
getId in interface User

getUserName

public java.lang.String getUserName()
Description copied from interface: User
The user name.

Specified by:
getUserName in interface User

getGivenName

public java.lang.String getGivenName()
Description copied from interface: User
The given name (firstname).

Specified by:
getGivenName in interface User

setGivenName

public void setGivenName(java.lang.String givenName)
Specified by:
setGivenName in interface User

getFamilyName

public java.lang.String getFamilyName()
Description copied from interface: User
The family name.

Specified by:
getFamilyName in interface User

setFamilyName

public void setFamilyName(java.lang.String familyName)
Specified by:
setFamilyName in interface User

updatePassword

public void updatePassword(java.lang.String password)
Description copied from interface: User
Set the password.

Specified by:
updatePassword in interface User

getRealEmail

public java.lang.String getRealEmail()
Specified by:
getRealEmail in interface User

setRealEmail

public void setRealEmail(java.lang.String realEmail)
Specified by:
setRealEmail in interface User

getFakeEmail

public java.lang.String getFakeEmail()
Specified by:
getFakeEmail in interface User

setFakeEmail

public void setFakeEmail(java.lang.String fakeEmail)
Specified by:
setFakeEmail in interface User

getRegistrationDate

public java.util.Date getRegistrationDate()
Specified by:
getRegistrationDate in interface User

setRegistrationDate

public void setRegistrationDate(java.util.Date registrationDate)

getViewRealEmail

public boolean getViewRealEmail()
Specified by:
getViewRealEmail in interface User

setViewRealEmail

public void setViewRealEmail(boolean viewRealEmail)
Specified by:
setViewRealEmail in interface User

getEnabled

public boolean getEnabled()
Description copied from interface: User
Disable the user.

Specified by:
getEnabled in interface User

setEnabled

public void setEnabled(boolean enable)
Description copied from interface: User
Enable the user.

Specified by:
setEnabled in interface User

getProfile

public ProfileMap getProfile()
Description copied from interface: User
Returns the user properties.

Specified by:
getProfile in interface User

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getRoles

public java.util.Set getRoles()
Returns the roles related to this user.


setRoles

public void setRoles(java.util.Set roles)
Update the roles.


getLastVisitDate

public java.util.Date getLastVisitDate()
Implemented as a dynamic attribute (see #INFO_USER_LAST_LOGIN_DATE).

Specified by:
getLastVisitDate in interface User

setLastVisitDate

public void setLastVisitDate(java.util.Date date)
Description copied from interface: User
Set the last visit date on this user.

Specified by:
setLastVisitDate in interface User

getSignature

public java.lang.String getSignature()
Implemented as a dynamic attribute (see #INFO_USER_SIGNATURE).

Specified by:
getSignature in interface User

setSignature

public void setSignature(java.lang.String signature)
Description copied from interface: User
Set the signature.

Specified by:
setSignature in interface User

getPreferredLocale

public java.util.Locale getPreferredLocale()
Implemented as a dynamic attribute (see #INFO_USER_LOCALE).

Specified by:
getPreferredLocale in interface User

setPreferredLocale

public void setPreferredLocale(java.util.Locale locale)
Description copied from interface: User
Set the user preferred locale.

Specified by:
setPreferredLocale in interface User

getTheme

public java.lang.String getTheme()
Description copied from interface: User
Return the theme set for this user as the app id of the Theme.

Specified by:
getTheme in interface User

setTheme

public void setTheme(java.lang.String themeId)
Description copied from interface: User
Set the theme for this user.

Specified by:
setTheme in interface User

validatePassword

public boolean validatePassword(java.lang.String password)
Description copied from interface: User
Return true if the password is valid.

Specified by:
validatePassword in interface User

getRoleNames

public java.util.Set getRoleNames()
Return all the role names of the user.


toString

public java.lang.String toString()