Interface Thread
-
- All Superinterfaces:
AmetysObject
,ExplorerNode
,TraversableAmetysObject
- All Known Subinterfaces:
ModifiableThread
- All Known Implementing Classes:
JCRThread
public interface Thread extends ExplorerNode, TraversableAmetysObject
Common interface for thread
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserIdentity
getAuthor()
Get the author of the threadDate
getCreationDate()
Get the thread's creation date.String
getTitle()
Get the title of the threadlong
getUnreadPosts(UserIdentity user)
Get the number of unread post in this thread for a user-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.explorer.ExplorerNode
getApplicationId, getDescription, getExplorerPath, getIconCls, hasChildExplorerNodes
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
-
-
-
Method Detail
-
getAuthor
UserIdentity getAuthor()
Get the author of the thread- Returns:
- The thread's author
-
getCreationDate
Date getCreationDate()
Get the thread's creation date.- Returns:
- the thread's creation date.
-
getUnreadPosts
long getUnreadPosts(UserIdentity user)
Get the number of unread post in this thread for a user- Parameters:
user
- The user- Returns:
- The number of unread post
-
-