|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.nucontent.model.Entity
com.nurelm.nucontent.model.User
This object corresponds to a user in a NuContent Web site.
| Field Summary | |
|---|---|
static java.lang.String |
SITE_ADMINISTRATOR
Initial username for default SITE_ADMINISTRATOR |
static java.lang.String |
SITE_ADMINISTRATOR_PASSWORD
Initial password for default SITE_ADMINISTRATOR |
| Fields inherited from class com.nurelm.nucontent.model.Entity |
|---|
id, name |
| Constructor Summary | |
|---|---|
protected |
User()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor. |
|
User(java.lang.String name)
|
| Method Summary | |
|---|---|
boolean |
addToGroup(Group group)
Add this User as a member to supplied Group. |
boolean |
authenticate(java.lang.String password)
Verify that the passed-in password equals the stored password. |
java.lang.String |
getEmailAddress()
|
java.lang.String |
getGroupNames()
Returns a String containing the names of the groups in which the user belongs. |
java.lang.String[] |
getGroupNamesArray()
|
int |
getNumOpenTasks()
|
int |
getNumPagesBeingEdited()
|
int |
getNumPagesBeingReviewed()
|
java.util.Collection |
getPagesBeingEdited()
Returns a collection of pages user is currently editing. |
java.util.Collection |
getPagesBeingReviewed()
Returns a collection of pages user is currently reviewing. |
java.util.Collection |
getPagesWithOpenTasks()
Returns a collection of pages with open tasks of any type. |
java.util.Collection |
getPagesWithOpenTasks(int taskType)
Returns a collection of pages with open tasks of the specified type. |
java.lang.String |
getPassword()
|
Site |
getSite()
Gets the Site to which this User belongs. |
UserValueObject |
getValueObject()
|
java.util.Collection |
getWorkingPages()
|
boolean |
isInGroup(Group group)
Determine whether User is member of supplied Group. |
boolean |
isInSiteAdminGroup()
Determine whether User is member of special Site Administrators group |
boolean |
removeFromGroup(Group group)
Removes this User from the supplied Group. |
void |
replaceGroups(Group[] replacementGroups)
Replaces any existing groups with the ones supplied. |
void |
setEmailAddress(java.lang.String emailAdress)
|
void |
setPassword(java.lang.String password)
|
| Methods inherited from class com.nurelm.nucontent.model.Entity |
|---|
equals, getId, getName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals, getName, hashCode, toString |
| Field Detail |
public static final java.lang.String SITE_ADMINISTRATOR
public static final java.lang.String SITE_ADMINISTRATOR_PASSWORD
| Constructor Detail |
protected User()
public User(java.lang.String name)
| Method Detail |
public boolean authenticate(java.lang.String password)
public boolean addToGroup(Group group)
public boolean removeFromGroup(Group group)
public boolean isInGroup(Group group)
public boolean isInSiteAdminGroup()
public void setPassword(java.lang.String password)
public UserValueObject getValueObject()
public java.lang.String getGroupNames()
public java.lang.String[] getGroupNamesArray()
public void replaceGroups(Group[] replacementGroups)
public java.util.Collection getPagesWithOpenTasks(int taskType)
public java.util.Collection getPagesWithOpenTasks()
public java.util.Collection getPagesBeingEdited()
public java.util.Collection getPagesBeingReviewed()
public java.util.Collection getWorkingPages()
public int getNumPagesBeingEdited()
public int getNumPagesBeingReviewed()
public int getNumOpenTasks()
public Site getSite()
throws DataAccessException
Site to which this User belongs.
Site to which this page User belongs.
DataAccessExceptionpublic java.lang.String getPassword()
public void setEmailAddress(java.lang.String emailAdress)
public java.lang.String getEmailAddress()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||