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 TypeMethodDescriptionvoidmarkAsRead(UserIdentity user) Mark the thread as read by a uservoidsetAuthor(UserIdentity author) Set the author of this thread.voidsetCreationDate(Date creationDate) Set the thread's creation date.voidSet the title of this thread.Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.explorer.ExplorerNode
getApplicationId, getDescription, getExplorerPath, getIconCls, hasChildExplorerNodesMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.explorer.ModifiableExplorerNode
setDescriptionMethods inherited from interface org.ametys.plugins.repository.ModifiableTraversableAmetysObject
createChildMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.explorer.threads.Thread
getAuthor, getCreationDate, getTitle, getUnreadPostsMethods 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
-