|
|||||||||
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.UserGroupPermission
public class UserGroupPermission
A permission on an object for a UserGroup.
Field Summary | |
---|---|
protected AuthoredTextAnnotation |
authoredTextAnnotation
The object being controlled. |
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 permission is active (available for use). |
protected boolean |
isPublic
True if public (can be seen by other users), false if private word set. |
protected java.util.Date |
modificationTime
Last modification date/time. |
protected java.lang.String |
owner
These items should be refactored out of UserObject at some point. |
protected java.lang.String |
permission
permission string. |
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 permission. |
protected UserGroup |
userGroup
Group given permission on the object. |
protected java.lang.String |
webPageURL
Web page URL. |
Constructor Summary | |
---|---|
UserGroupPermission()
|
|
UserGroupPermission(AuthoredTextAnnotation authoredTextAnnotation,
UserGroup userGroup,
java.lang.String permission,
java.lang.String owner)
|
Method Summary | |
---|---|
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. |
AuthoredTextAnnotation |
getAuthoredTextAnnotation()
Get the conrolled item. |
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.Date |
getModificationTime()
Gets the modification date. |
java.lang.String |
getOwner()
Get the owner. |
java.lang.String |
getPermission()
Get the permission. |
java.lang.String |
getQuery()
Get the query. |
java.lang.String |
getTitle()
Gets the title. |
UserGroup |
getUserGroup()
Get the group. |
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 permission from an object input stream (deserializes the object). |
void |
setAuthoredTextAnnotation(AuthoredTextAnnotation authoredTextAnnotation)
set the authoredTextAnnotation. |
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 |
setPermission(java.lang.String permission)
set the permission. |
void |
setQuery(java.lang.String query)
Set the query. |
void |
setTitle(java.lang.String title)
Sets the title. |
void |
setUserGroup(UserGroup userGroup)
set the group. |
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 permission 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 UserGroup userGroup
protected AuthoredTextAnnotation authoredTextAnnotation
protected java.lang.String permission
protected java.lang.String owner
protected boolean isPublic
protected boolean isActive
protected java.lang.String query
Constructor Detail |
---|
public UserGroupPermission()
public UserGroupPermission(AuthoredTextAnnotation authoredTextAnnotation, UserGroup userGroup, java.lang.String permission, 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.lang.String getPermission()
public void setPermission(java.lang.String permission)
permission
- The permission. public UserGroup getUserGroup()
public void setUserGroup(UserGroup userGroup)
userGroup
- The group. public AuthoredTextAnnotation getAuthoredTextAnnotation()
public void setAuthoredTextAnnotation(AuthoredTextAnnotation authoredTextAnnotation)
authoredTextAnnotation
- The object being controlled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |