|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.auth.user.DefaultUserProfile
public class DefaultUserProfile
Default implementation for representing wiki user information, such as the login name, full name, wiki name, and e-mail address.
Constructor Summary | |
---|---|
DefaultUserProfile()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Date |
getCreated()
Returns the creation date |
String |
getEmail()
Returns the user's e-mail address. |
String |
getFullname()
Returns the user's full name. |
Date |
getLastModified()
Returns the last-modified date. |
String |
getLoginName()
Returns the user's login name. |
String |
getPassword()
Returns the user password for use with custom authentication. |
String |
getWikiName()
Returns the user's wiki name. |
boolean |
isNew()
Returns true if the user profile is
new. |
void |
setCreated(Date date)
Sets the created date. |
void |
setEmail(String email)
Sets the user's e-mail address. |
void |
setFullname(String arg)
Sets the user's full name. |
void |
setLastModified(Date date)
Sets the last-modified date. |
void |
setLoginName(String name)
Sets the name by which the user logs in. |
void |
setPassword(String arg)
Sets the user's password for use with custom authentication. |
void |
setWikiName(String name)
Sets the user's wiki name. |
String |
toString()
Returns a string representation of this user profile. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserProfile()
Method Detail |
---|
public boolean equals(Object o)
equals
in interface UserProfile
equals
in class Object
public Date getCreated()
getCreated
in interface UserProfile
UserProfile.getCreated()
public String getEmail()
getEmail
in interface UserProfile
public String getFullname()
getFullname
in interface UserProfile
public Date getLastModified()
getLastModified
in interface UserProfile
UserProfile.getLastModified()
public String getLoginName()
getLoginName
in interface UserProfile
public String getPassword()
UserDatabase
implementation, in most cases the
value returned by this method will be a password hash, not the password
itself.
getPassword
in interface UserProfile
public String getWikiName()
getWikiName
in interface UserProfile
public boolean isNew()
true
if the user profile is
new. This implementation checks whether
getLastModified()
returns null
to determine the status.
isNew
in interface UserProfile
UserProfile.isNew()
public void setCreated(Date date)
UserProfile
setCreated
in interface UserProfile
date
- the creation dateUserProfile.setCreated(java.util.Date)
public void setEmail(String email)
setEmail
in interface UserProfile
email
- the e-mail addresspublic void setFullname(String arg)
setFullname
in interface UserProfile
arg
- the full namepublic void setLastModified(Date date)
setLastModified
in interface UserProfile
date
- the last-modified dateUserProfile.setLastModified(java.util.Date)
public void setLoginName(String name)
AuthenticationManager.login(WikiSession, String, String)
).
The login name is typically a short name ("jannej"). In contrast, the
wiki name is typically of type FirstnameLastName ("JanneJalkanen").
setLoginName
in interface UserProfile
name
- the login namepublic void setPassword(String arg)
UserDatabase.save(UserProfile)
).
Note that the password field is not meaningful for container
authentication; the user's private credentials are generally stored
elsewhere.
setPassword
in interface UserProfile
arg
- the passwordpublic void setWikiName(String name)
setWikiName
in interface UserProfile
name
- the wiki namepublic String toString()
toString
in interface UserProfile
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |