|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sail.webapp.domain.group.impl.PersistentGroup
public class PersistentGroup
This implementation of group
| Field Summary | |
|---|---|
static String |
COLUMN_NAME_NAME
|
static String |
COLUMN_NAME_PARENT_FK
|
static String |
DATA_STORE_NAME
|
static String |
GROUPS_JOIN_COLUMN_NAME
|
static String |
USERS_JOIN_COLUMN_NAME
|
static String |
USERS_JOIN_TABLE_NAME
|
| Constructor Summary | |
|---|---|
PersistentGroup()
|
|
| Method Summary | |
|---|---|
void |
addMember(User member)
Add a single member to the group. |
int |
compareTo(Group o)
|
boolean |
equals(Object obj)
|
Long |
getId()
Gets the id for this object. |
Set<User> |
getMembers()
Get the list of members of this group. |
String |
getName()
Gets the name of this group. |
Group |
getParent()
Gets the parent group for this group. |
int |
hashCode()
|
void |
removeMember(User member)
Removes a single member from the group. |
void |
setMembers(Set<User> members)
Replace any existing list of members with the new list. |
void |
setName(String name)
Sets the name of this group. |
void |
setParent(Group parent)
Sets the parent group for this group. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATA_STORE_NAME
public static final String USERS_JOIN_TABLE_NAME
public static final String COLUMN_NAME_NAME
public static final String COLUMN_NAME_PARENT_FK
public static final String USERS_JOIN_COLUMN_NAME
public static final String GROUPS_JOIN_COLUMN_NAME
| Constructor Detail |
|---|
public PersistentGroup()
| Method Detail |
|---|
public void addMember(User member)
Group
addMember in interface Groupmember - single member to addGroup.addMember(net.sf.sail.webapp.domain.User)public void removeMember(User member)
Group
removeMember in interface Groupmember - single member to removeGroup.removeMember(net.sf.sail.webapp.domain.User)public Set<User> getMembers()
Group
getMembers in interface GroupList of User objects that belong to
this group.Group.getMembers()public void setMembers(Set<User> members)
Group
setMembers in interface Groupmembers - new List of members to setnet.sf.sail.webapp.domain.group.Group#setMembers(java.util.List)public Long getId()
Group
getId in interface GroupgetId in interface PersistableGroup.getId()public String getName()
Group
getName in interface GroupGroup.getName()public void setName(String name)
Group
setName in interface Groupname - the name to set for this group.Group.setName(java.lang.String)public Group getParent()
Group
getParent in interface GroupGroup.getParent()public void setParent(Group parent)
Group
setParent in interface Groupparent - the parent to setGroup.setParent(net.sf.sail.webapp.domain.group.Group)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int compareTo(Group o)
compareTo in interface Comparable<Group>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||