org.jboss.portal.core.impl.user
Class UserImpl

java.lang.Object
  extended by org.jboss.portal.core.impl.user.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User

User interface implementation.


Field Summary
 boolean enabled
           
 java.lang.String fakeEmail
           
 java.lang.String familyName
           
 java.lang.String givenName
           
 java.lang.String password
           
 java.lang.String realEmail
           
 java.lang.String userName
           
 boolean viewRealEmail
           
 
Constructor Summary
UserImpl()
          Called by hibernate.
UserImpl(java.lang.String userName)
           
 
Method Summary
 java.util.Map getDynamic()
           
 boolean getEnabled()
           
 java.lang.String getFakeEmail()
           
 java.lang.String getFamilyName()
          The family name.
 java.lang.String getGivenName()
          The given name.
 java.lang.Integer getID()
          The user identifier.
 java.util.Date getLastVisitDate()
          Return the last time the user logged in or null if this date is not known.
 java.lang.String getPassword()
           
 PreferenceStore getPreferenceStore()
          Returns the user preference store.
 PropertyMap getProperties()
          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()
          Returns the signature of the user (for forums for example)
 java.lang.String getUserName()
          The user name.
 boolean getViewRealEmail()
           
 void setEnabled(boolean enable)
           
 void setFakeEmail(java.lang.String fakeEmail)
           
 void setFamilyName(java.lang.String familyName)
           
 void setGivenName(java.lang.String givenName)
           
 void setLastVisitDate(java.util.Date date)
           
 void setPassword(java.lang.String password)
           
 void setRealEmail(java.lang.String realEmail)
           
 void setRegistrationDate(java.util.Date registrationDate)
           
 void setRoles(java.util.Set roles)
          Called by Hibernate.
 void setViewRealEmail(boolean viewRealEmail)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userName

public java.lang.String userName

givenName

public java.lang.String givenName

familyName

public java.lang.String familyName

realEmail

public java.lang.String realEmail

fakeEmail

public java.lang.String fakeEmail

viewRealEmail

public boolean viewRealEmail

password

public java.lang.String password

enabled

public boolean enabled
Constructor Detail

UserImpl

public UserImpl()
Called by hibernate.


UserImpl

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

setGivenName

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

setFamilyName

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

getDynamic

public java.util.Map getDynamic()

setRoles

public void setRoles(java.util.Set roles)
Called by Hibernate.

Specified by:
setRoles in interface User

getRoleNames

public java.util.Set getRoleNames()
Description copied from interface: User
Return all the role names of the user.

Specified by:
getRoleNames in interface User

getID

public java.lang.Integer getID()
Description copied from interface: User
The user identifier.

Specified by:
getID in interface User
Returns:
the user ID

getUserName

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

Specified by:
getUserName in interface User
Returns:
the user name

getGivenName

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

Specified by:
getGivenName in interface User
Returns:
the given name (firstname)

getFamilyName

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

Specified by:
getFamilyName in interface User
Returns:
the family name

setPassword

public void setPassword(java.lang.String password)
Specified by:
setPassword in interface User

getPassword

public java.lang.String getPassword()
Specified by:
getPassword 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)
Specified by:
setRegistrationDate in interface User

getViewRealEmail

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

setViewRealEmail

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

setEnabled

public void setEnabled(boolean enable)
Specified by:
setEnabled in interface User

getEnabled

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

getProperties

public PropertyMap getProperties()
Description copied from interface: User
Returns the user properties.

Specified by:
getProperties in interface User

getPreferenceStore

public PreferenceStore getPreferenceStore()
Description copied from interface: User
Returns the user preference store.

Specified by:
getPreferenceStore in interface User

getRoles

public java.util.Set getRoles()
Description copied from interface: User
Returns the roles related to this user.

Specified by:
getRoles in interface User

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLastVisitDate

public java.util.Date getLastVisitDate()
Description copied from interface: User
Return the last time the user logged in or null if this date is not known.

Specified by:
getLastVisitDate in interface User

setLastVisitDate

public void setLastVisitDate(java.util.Date date)

getSignature

public java.lang.String getSignature()
Description copied from interface: User
Returns the signature of the user (for forums for example)

Specified by:
getSignature in interface User