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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Comment
get(UUID uuid)
Gets the comment by its uuid.<S extends KeyConcept>
List<Comment>getComments(UID<S> keyConceptURI)
Lists the comments as a key concerned is concerned<S extends KeyConcept>
voidpublish(Comment comment, UID<S> keyConceptURI)
Publishes a comment about a key concept.void
update(Comment comment)
Updates a comment.
-
-
-
Method Detail
-
publish
<S extends KeyConcept> void publish(Comment comment, UID<S> keyConceptURI)
Publishes a comment about a key concept.- Parameters:
comment
- the commentkeyConceptURI
- the key concept defined by its URI
-
get
Comment get(UUID uuid)
Gets the comment by its uuid.- Parameters:
uuid
- the uuid of the comment- Returns:
- the comment
-
getComments
<S extends KeyConcept> List<Comment> getComments(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
void update(Comment comment)
Updates a comment.- Parameters:
comment
- the comment
-
-