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
- Author:
- pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionRedisCommentPlugin(Optional<String> connectorNameOpt, List<io.vertigo.connectors.redis.RedisConnector> redisConnectors) -
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.
-
Constructor Details
-
Method Details
-
publish
public <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.- Specified by:
publishin interfaceCommentPlugin- Parameters:
comment- the commentkeyConceptUri- the key concept defined by its URI
-
update
Updates a comment.- Specified by:
updatein interfaceCommentPlugin- Parameters:
comment- the comment
-
get
Gets the comment by its uuid.- Specified by:
getin interfaceCommentPlugin- Parameters:
uuid- the uuid of the comment- Returns:
- the comment
-
getComments
public <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- Specified by:
getCommentsin interfaceCommentPlugin- Parameters:
keyConceptUri- the key concept defined by its URI- Returns:
- the list of comments
-