|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.userdata.UserGroup
public class UserGroup
A group of users.
Field Summary | |
---|---|
protected java.util.Collection |
admins
Collection of userids that can manage this group. |
protected java.util.Date |
creationTime
Original creation date/time. |
protected java.lang.String |
description
Description of the group. |
protected java.lang.Long |
id
Unique persistence id (primary key). |
protected boolean |
isActive
True if annotation is active (available for use). |
protected boolean |
isPublic
True if public word set (can be seen by other users), false if private word set. |
protected java.util.Collection |
members
Collection of member userids belonging to this group. |
protected java.util.Date |
modificationTime
Last modification date/time. |
protected java.lang.String |
owner
Owner of this group. |
protected java.lang.String |
query
The query - part of UserData interface which should probably be factored out |
(package private) static long |
serialVersionUID
|
protected java.lang.String |
title
The title of the group. |
protected java.lang.String |
webPageURL
Web page URL. |
Constructor Summary | |
---|---|
UserGroup()
|
|
UserGroup(java.lang.String title,
java.lang.String owner)
|
Method Summary | |
---|---|
void |
addAdmin(java.lang.String admin)
Adds a admin. |
void |
addAdmins(java.util.Collection adminCollection)
Adds admins from a collection of admin ids. |
void |
addMember(java.lang.String member)
Adds a member. |
void |
addMembers(java.util.Collection memberCollection)
Adds members from a collection of member ids. |
boolean |
addToDOMDocument(org.w3c.dom.Document document)
Add word set to DOM document. |
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
java.util.Collection |
getAdmins()
Get the group admin ids. |
java.util.Date |
getCreationTime()
Gets the creation date. |
java.lang.String |
getDescription()
Gets the description. |
java.lang.Long |
getId()
Gets the unique id. |
boolean |
getIsActive()
Get the active flag. |
boolean |
getIsPublic()
Get the public flag. |
java.util.Collection |
getMembers()
Get the group member ids. |
java.util.Date |
getModificationTime()
Gets the modification date. |
java.lang.String |
getOwner()
Get the owner. |
java.lang.String |
getQuery()
Get the query. |
java.lang.String |
getTitle()
Gets the title. |
java.lang.String |
getWebPageURL()
Gets the web page URL. |
int |
hashCode()
Returns a hash code for the object. |
void |
readExternal(java.io.ObjectInput in)
Reads the annotation from an object input stream (deserializes the object). |
void |
removeAdmin(java.lang.String admin)
Removes a admin. |
void |
removeAdmins(java.util.Collection adminCollection)
Removes admins passed as collection. |
void |
removeAllMembers()
Removes all members. |
void |
removeMember(java.lang.String member)
Removes a member. |
void |
removeMembers(java.util.Collection memberCollection)
Removes members passed as collection. |
void |
setCreationTime(java.util.Date creationTime)
Sets the creation time. |
void |
setDescription(java.lang.String description)
Sets the description. |
boolean |
setFromDOMDocumentNode(org.w3c.dom.Node wordSetNode)
Set values from DOM document node. |
void |
setIsActive(boolean isActive)
Set the active flag. |
void |
setIsPublic(boolean isPublic)
Set the public flag. |
void |
setModificationTime(java.util.Date modificationTime)
Sets the modification time. |
void |
setOwner(java.lang.String owner)
Set the owner. |
void |
setQuery(java.lang.String query)
Set the query. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setWebPageURL(java.lang.String webPageURL)
Sets the web page URL. |
java.lang.String |
toString()
Gets a string representation of the word set. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the annotation to an object output stream (serializes the object). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
protected java.lang.Long id
protected java.lang.String title
protected java.lang.String description
protected java.lang.String webPageURL
protected java.util.Date creationTime
protected java.util.Date modificationTime
protected java.util.Collection members
Element type is String. The strings are the unique userids.
protected java.util.Collection admins
Element type is String. The strings are the unique userids.
protected java.lang.String owner
protected boolean isPublic
protected boolean isActive
protected java.lang.String query
Constructor Detail |
---|
public UserGroup()
public UserGroup(java.lang.String title, java.lang.String owner)
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
getId
in interface UserDataObject
public java.lang.String getTitle()
getTitle
in interface UserDataObject
public java.lang.String getDescription()
getDescription
in interface UserDataObject
public java.lang.String getWebPageURL()
getWebPageURL
in interface UserDataObject
public java.util.Date getCreationTime()
getCreationTime
in interface UserDataObject
public java.util.Date getModificationTime()
getModificationTime
in interface UserDataObject
public java.lang.String getOwner()
getOwner
in interface UserDataObject
public boolean getIsPublic()
getIsPublic
in interface UserDataObject
public boolean getIsActive()
getIsActive
in interface UserDataObject
public java.lang.String getQuery()
getQuery
in interface UserDataObject
public void setTitle(java.lang.String title)
setTitle
in interface UserDataObject
title
- The title. public void setDescription(java.lang.String description)
setDescription
in interface UserDataObject
description
- The description. public void setWebPageURL(java.lang.String webPageURL)
setWebPageURL
in interface UserDataObject
webPageURL
- The web page URL. public void setCreationTime(java.util.Date creationTime)
setCreationTime
in interface UserDataObject
creationTime
- The creation time. public void setModificationTime(java.util.Date modificationTime)
setModificationTime
in interface UserDataObject
modificationTime
- The modification time. public void setOwner(java.lang.String owner)
owner
- The owner. public void setIsPublic(boolean isPublic)
isPublic
- True if the word set is public, false if private. public void setIsActive(boolean isActive)
isActive
- True if the word set is active. public void setQuery(java.lang.String query)
query
- The query for generating this word set. public boolean setFromDOMDocumentNode(org.w3c.dom.Node wordSetNode)
setFromDOMDocumentNode
in interface UserDataObject
wordSetNode
- DOM document node with word set settings.
public boolean addToDOMDocument(org.w3c.dom.Document document)
addToDOMDocument
in interface UserDataObject
document
- DOM document to which to add word set.
Must not be null. In most cases,
this document should have a "wordhoard"
node as the root element.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
The two objects are equal if their ids are equal.
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- Object output stream.
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- Object input stream.
java.io.IOException
java.lang.ClassNotFoundException
public java.util.Collection getMembers()
public void addMembers(java.util.Collection memberCollection)
memberCollection
- The new members as a collection. public void addMember(java.lang.String member)
member
- The new member userid. public void removeMembers(java.util.Collection memberCollection)
public void removeAllMembers()
public void removeMember(java.lang.String member)
member
- The new member userid. public java.util.Collection getAdmins()
public void addAdmins(java.util.Collection adminCollection)
adminCollection
- The new admins as a collection. public void addAdmin(java.lang.String admin)
admin
- The new admin userid. public void removeAdmins(java.util.Collection adminCollection)
public void removeAdmin(java.lang.String admin)
admin
- The new admin userid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |