Interface ModifiableThread
- All Superinterfaces:
AmetysObject
,ExplorerNode
,ModifiableAmetysObject
,ModifiableExplorerNode
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,Thread
,TraversableAmetysObject
- All Known Implementing Classes:
JCRThread
public interface ModifiableThread
extends Thread, ModifiableTraversableAmetysObject, RemovableAmetysObject, ModifiableExplorerNode
Common interface for modifiable thread
-
Method Summary
Modifier and TypeMethodDescriptionvoid
markAsRead
(UserIdentity user) Mark the thread as read by a uservoid
setAuthor
(UserIdentity author) Set the author of this thread.void
setCreationDate
(Date creationDate) Set the thread's creation date.void
Set the title of this thread.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.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
Methods inherited from interface org.ametys.plugins.explorer.ModifiableExplorerNode
setDescription
Methods inherited from interface org.ametys.plugins.repository.ModifiableTraversableAmetysObject
createChild
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
Methods inherited from interface org.ametys.plugins.explorer.threads.Thread
getAuthor, getCreationDate, getTitle, getUnreadPosts
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
Method Details
-
setTitle
Set the title of this thread.- Parameters:
title
- the thread's title
-
setAuthor
Set the author of this thread.- Parameters:
author
- the author
-
setCreationDate
Set the thread's creation date.- Parameters:
creationDate
- the thread's creation date.
-
markAsRead
Mark the thread as read by a user- Parameters:
user
- The user
-