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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmarkAsRead(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.voidsetTitle(String title)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 Detail
-
setTitle
void setTitle(String title)
Set the title of this thread.- Parameters:
title- the thread's title
-
setAuthor
void setAuthor(UserIdentity author)
Set the author of this thread.- Parameters:
author- the author
-
setCreationDate
void setCreationDate(Date creationDate)
Set the thread's creation date.- Parameters:
creationDate- the thread's creation date.
-
markAsRead
void markAsRead(UserIdentity user)
Mark the thread as read by a user- Parameters:
user- The user
-
-