Package io.vertigo.social.comment
Interface CommentManager
-
- All Superinterfaces:
io.vertigo.core.node.component.Component
,io.vertigo.core.node.component.CoreComponent
- All Known Implementing Classes:
CommentManagerImpl
public interface CommentManager extends io.vertigo.core.node.component.Component
- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Comment>
getComments(UID<? extends KeyConcept> keyConceptUID)
Gets a list of sorted comments published on this keyConcept.void
publish(UID<Account> accountUID, Comment comment, UID<? extends KeyConcept> keyConceptUID)
Publishes a comment on a key concept.void
update(UID<Account> accountUID, Comment comment)
Updates a comment.
-
-
-
Method Detail
-
getComments
List<Comment> getComments(UID<? extends KeyConcept> keyConceptUID)
Gets a list of sorted comments published on this keyConcept.- Parameters:
keyConceptUID
- the UID of the keyConcept- Returns:
- the list of sorted comments
-
publish
void publish(UID<Account> accountUID, Comment comment, UID<? extends KeyConcept> keyConceptUID)
Publishes a comment on a key concept.- Parameters:
accountUID
- the account defined by its UIDcomment
- the commentkeyConceptUID
- the UID of the keyConcept
-
-