public class JCRThread extends DefaultTraversableAmetysObject<JCRThreadFactory> implements ModifiableThread
Thread, backed by a JCR node.| Modifier and Type | Field and Description | 
|---|---|
| static String | APPLICATION_IDapplication id for resources collections. | 
| private static String | METADATA_AUTHOR | 
| private static String | METADATA_CREATIONDATE | 
| private static String | METADATA_DESCRIPTION | 
| private static String | METADATA_TITLE | 
| Constructor and Description | 
|---|
| JCRThread(Node node,
         String parentPath,
         JCRThreadFactory factory)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getApplicationId()Returns the application id corresponding to this Node. | 
| UserIdentity | getAuthor()Get the author of the thread | 
| Date | getCreationDate()Get the thread's creation date. | 
| String | getDescription()Get the description of the application | 
| String | getExplorerPath()Returns the path of this explorer node in the explorer hierarchy (which is a subset of the whole repository). If this collection is the root explorer node, "" is returned. | 
| String | getIconCls()Returns the icon css class for this Node. | 
| String | getTitle()Get the title of the thread | 
| long | getUnreadPosts(UserIdentity user)Get the number of unread post in this thread for a user | 
| boolean | hasChildExplorerNodes()Returns true if this explorer node contains child explorer nodes. | 
| void | markAsRead(UserIdentity user)Mark the thread as read by a user | 
| void | setAuthor(UserIdentity author)Set the author of this thread. | 
| void | setCreationDate(Date creationDate)Set the thread's creation date. | 
| void | setDescription(String description)Set the description of the application | 
| void | setTitle(String title)Set the title of this thread. | 
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateChildgetChild, getChildAt, getChildPosition, getChildren, hasChildremoveneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodegetNodegetMetadataHolderpublic static final String APPLICATION_ID
private static final String METADATA_TITLE
private static final String METADATA_DESCRIPTION
private static final String METADATA_AUTHOR
private static final String METADATA_CREATIONDATE
public JCRThread(Node node, String parentPath, JCRThreadFactory factory)
node - The jcr nodeparentPath - The parent pathfactory - The factorypublic String getApplicationId()
ExplorerNodegetApplicationId in interface ExplorerNodepublic String getTitle()
Threadpublic void setTitle(String title)
ModifiableThreadsetTitle in interface ModifiableThreadtitle - the thread's titlepublic String getDescription()
ExplorerNodegetDescription in interface ExplorerNodepublic void setDescription(String description)
ModifiableExplorerNodesetDescription in interface ModifiableExplorerNodedescription - the descriptionpublic UserIdentity getAuthor()
Threadpublic void setAuthor(UserIdentity author)
ModifiableThreadsetAuthor in interface ModifiableThreadauthor - the authorpublic Date getCreationDate()
ThreadgetCreationDate in interface Threadpublic void setCreationDate(Date creationDate)
ModifiableThreadsetCreationDate in interface ModifiableThreadcreationDate - the thread's creation date.public String getIconCls()
ExplorerNodegetIconCls in interface ExplorerNodepublic String getExplorerPath()
ExplorerNodegetExplorerPath in interface ExplorerNodepublic boolean hasChildExplorerNodes() throws AmetysRepositoryException
ExplorerNodehasChildExplorerNodes in interface ExplorerNodeAmetysRepositoryException - if an error occurs.public long getUnreadPosts(UserIdentity user)
ThreadgetUnreadPosts in interface Threaduser - The userpublic void markAsRead(UserIdentity user)
ModifiableThreadmarkAsRead in interface ModifiableThreaduser - The user