Class RedisCommentPlugin
- java.lang.Object
-
- io.vertigo.social.plugins.comment.redis.RedisCommentPlugin
-
- All Implemented Interfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,CommentPlugin
public final class RedisCommentPlugin extends Object implements CommentPlugin
- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description RedisCommentPlugin(Optional<String> connectorNameOpt, List<io.vertigo.connectors.redis.RedisConnector> redisConnectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commentget(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.voidupdate(Comment comment)Updates a comment.
-
-
-
Method Detail
-
publish
public <S extends KeyConcept> void publish(Comment comment, UID<S> keyConceptUri)
Publishes a comment about a key concept.- Specified by:
publishin interfaceCommentPlugin- Parameters:
comment- the commentkeyConceptUri- the key concept defined by its URI
-
update
public void update(Comment comment)
Updates a comment.- Specified by:
updatein interfaceCommentPlugin- Parameters:
comment- the comment
-
get
public Comment get(UUID uuid)
Gets the comment by its uuid.- Specified by:
getin interfaceCommentPlugin- Parameters:
uuid- the uuid of the comment- Returns:
- the comment
-
getComments
public <S extends KeyConcept> List<Comment> getComments(UID<S> keyConceptUri)
Lists the comments as a key concerned is concerned- Specified by:
getCommentsin interfaceCommentPlugin- Parameters:
keyConceptUri- the key concept defined by its URI- Returns:
- the list of comments
-
-