|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.PersistentObject
org.liquidsite.core.content.Group
A system group.
| Field Summary | |
static java.lang.String |
NAME_CHARS
The permitted group name characters. |
| Fields inherited from class org.liquidsite.core.content.PersistentObject |
BINDERS, LOWER_CASE, NUMBERS, UPPER_CASE |
| Constructor Summary | |
Group(ContentManager manager,
Domain domain,
java.lang.String name)
Creates a new group with default values. |
|
| Method Summary | |
void |
addUser(User user)
Adds the specified user to this group. |
protected void |
doDelete(DataSource src,
User user)
Deletes the object data from the database. |
protected void |
doInsert(DataSource src,
User user,
boolean restore)
Inserts the object data into the database. |
protected void |
doUpdate(DataSource src,
User user)
Updates the object data in the database. |
protected void |
doValidate()
Validates the object data before writing to the database. |
boolean |
equals(Group obj)
Checks if this group equals another group. |
boolean |
equals(java.lang.Object obj)
Checks if this group equals another object. |
java.lang.String |
getComment()
Returns the group comment. |
java.lang.String |
getDescription()
Returns the group description. |
Domain |
getDomain()
Returns the group domain. |
java.lang.String |
getDomainName()
Returns the group domain name |
java.lang.String |
getName()
Returns the group name. |
int |
getUserCount()
Returns the number of users that belong to this group. |
User[] |
getUsers(int startPos,
int maxLength)
Returns the users that belong to this group. |
boolean |
isPublic()
Checks if this group is public. |
void |
removeUser(User user)
Removes the specified user from this group. |
void |
setComment(java.lang.String comment)
Sets the group comment. |
void |
setDescription(java.lang.String description)
Sets the the group description. |
void |
setPublic(boolean value)
Sets the public group flag. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.liquidsite.core.content.PersistentObject |
decodeMap, delete, delete, encodeMap, getContentManager, hasAdminAccess, hasPublishAccess, hasReadAccess, hasWriteAccess, isPersistent, restore, restore, save, save, validateChars, validateSize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME_CHARS
| Constructor Detail |
public Group(ContentManager manager,
Domain domain,
java.lang.String name)
manager - the content manager to usedomain - the domainname - the group name| Method Detail |
public boolean equals(java.lang.Object obj)
obj - the object to compare with
public boolean equals(Group obj)
obj - the object to compare with
public java.lang.String toString()
public Domain getDomain()
throws ContentException
ContentException - if no content manager is availablepublic java.lang.String getDomainName()
public java.lang.String getName()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new group descriptionpublic boolean isPublic()
public void setPublic(boolean value)
value - the new flag valuepublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - the new group comment
public int getUserCount()
throws ContentException
ContentException - if the database couldn't be accessed
properly
public User[] getUsers(int startPos,
int maxLength)
throws ContentException
startPos - the list interval start positionmaxLength - the list interval maximum length
ContentException - if the database couldn't be accessed
properlypublic void addUser(User user)
user - the user objectpublic void removeUser(User user)
user - the user object
protected void doValidate()
throws ContentException
doValidate in class PersistentObjectContentException - if the object data wasn't valid
protected void doInsert(DataSource src,
User user,
boolean restore)
throws ContentException
doInsert in class PersistentObjectsrc - the data source to useuser - the user performing the operationrestore - the restore flag
ContentException - if the database couldn't be accessed
properly
protected void doUpdate(DataSource src,
User user)
throws ContentException
doUpdate in class PersistentObjectsrc - the data source to useuser - the user performing the operation
ContentException - if the database couldn't be accessed
properly
protected void doDelete(DataSource src,
User user)
throws ContentException
doDelete in class PersistentObjectsrc - the data source to useuser - the user performing the operation
ContentException - if the database couldn't be accessed
properly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||