Package io.vertigo.social.impl.comment
Interface CommentPlugin
- All Superinterfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin
- All Known Implementing Classes:
MemoryCommentPlugin,RedisCommentPlugin
public interface CommentPlugin
extends io.vertigo.core.node.component.Plugin
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionGets the comment by its uuid.getComments(io.vertigo.datamodel.data.model.UID<S> keyConceptURI) Lists the comments as a key concerned is concerned<S extends io.vertigo.datamodel.data.model.KeyConcept>
voidPublishes a comment about a key concept.voidUpdates a comment.
-
Method Details
-
publish
<S extends io.vertigo.datamodel.data.model.KeyConcept> void publish(Comment comment, io.vertigo.datamodel.data.model.UID<S> keyConceptURI) Publishes a comment about a key concept.- Parameters:
comment- the commentkeyConceptURI- the key concept defined by its URI
-
get
Gets the comment by its uuid.- Parameters:
uuid- the uuid of the comment- Returns:
- the comment
-
getComments
<S extends io.vertigo.datamodel.data.model.KeyConcept> List<Comment> getComments(io.vertigo.datamodel.data.model.UID<S> keyConceptURI) Lists the comments as a key concerned is concerned- Parameters:
keyConceptURI- the key concept defined by its URI- Returns:
- the list of comments
-
update
Updates a comment.- Parameters:
comment- the comment
-