|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.template.UserBean
A user template bean. This class is used to insert the user object in the into the template data model.
| Method Summary | |
boolean |
getDomainadmin()
Checks if the users has administration privileges in the domain. |
java.lang.String |
getEmail()
Returns the user email address. |
java.util.ArrayList |
getGroups()
Returns a list of the group names to which the user belong. |
java.lang.String |
getLogin()
Returns the user login name. |
java.lang.String |
getRealName()
Returns the real user name. |
boolean |
getSuperuser()
Returns the superuser flag for the user. |
void |
groupAdd(java.lang.String name)
Adds this user to the specified group. |
void |
groupRemove(java.lang.String name)
Removes this user to the specified group. |
boolean |
inGroup(java.lang.String name)
Checks if the user is member of a named group. |
boolean |
save()
Saves all the modifications for this user to the database. |
boolean |
sendEmailVerification(java.lang.String subject,
java.lang.String text,
java.lang.String replaceText)
Sends an email verification request to the user. |
void |
setEmail(java.lang.String email)
Sets the user e-mail address. |
void |
setLogin(java.lang.String login)
Sets the login user name. |
void |
setPassword(java.lang.String password)
Sets the user password. |
void |
setRealName(java.lang.String realName)
Sets the real user name. |
java.lang.String |
toString()
Returns a description of this user. |
boolean |
verifyEmail(java.lang.String key)
Verifies the user email address and unlocks this user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public java.lang.String toString()
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
login - the new use login namepublic void setPassword(java.lang.String password)
password - the new user passwordpublic java.lang.String getRealName()
public void setRealName(java.lang.String realName)
realName - the new real user namepublic java.lang.String getEmail()
public void setEmail(java.lang.String email)
email - the new user e-mail addresspublic boolean getDomainadmin()
public boolean getSuperuser()
public java.util.ArrayList getGroups()
public boolean inGroup(java.lang.String name)
name - the group name
public void groupAdd(java.lang.String name)
name - the group namepublic void groupRemove(java.lang.String name)
name - the group namepublic boolean save()
public boolean sendEmailVerification(java.lang.String subject,
java.lang.String text,
java.lang.String replaceText)
subject - the mail subjecttext - the mail textreplaceText - the key replacement text
verifyEmail(String)public boolean verifyEmail(java.lang.String key)
key - the verification key
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||