Package io.vertigo.social.impl.comment
Class CommentManagerImpl
- java.lang.Object
-
- io.vertigo.social.impl.comment.CommentManagerImpl
-
- All Implemented Interfaces:
io.vertigo.core.node.component.Component
,io.vertigo.core.node.component.CoreComponent
,CommentManager
public final class CommentManagerImpl extends Object implements CommentManager
- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description CommentManagerImpl(CommentPlugin commentsPlugin)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Comment>
getComments(UID<? extends KeyConcept> keyConceptUri)
Gets a list of sorted comments published on this keyConcept.void
publish(UID<Account> accountURI, Comment comment, UID<? extends KeyConcept> keyConceptUri)
Publishes a comment on a key concept.void
update(UID<Account> accountURI, Comment comment)
Updates a comment.
-
-
-
Constructor Detail
-
CommentManagerImpl
@Inject public CommentManagerImpl(CommentPlugin commentsPlugin)
Constructor.- Parameters:
commentsPlugin
- Comment plugin
-
-
Method Detail
-
publish
public void publish(UID<Account> accountURI, Comment comment, UID<? extends KeyConcept> keyConceptUri)
Publishes a comment on a key concept.- Specified by:
publish
in interfaceCommentManager
- Parameters:
accountURI
- the account defined by its UIDcomment
- the commentkeyConceptUri
- the UID of the keyConcept
-
getComments
public List<Comment> getComments(UID<? extends KeyConcept> keyConceptUri)
Gets a list of sorted comments published on this keyConcept.- Specified by:
getComments
in interfaceCommentManager
- Parameters:
keyConceptUri
- the UID of the keyConcept- Returns:
- the list of sorted comments
-
update
public void update(UID<Account> accountURI, Comment comment)
Updates a comment.- Specified by:
update
in interfaceCommentManager
- Parameters:
accountURI
- the account defined by its UIDcomment
- the updated comment
-
-