public final class RedisCommentPlugin extends Object implements CommentPlugin
| Constructor and Description |
|---|
RedisCommentPlugin(io.vertigo.commons.impl.connectors.redis.RedisConnector redisConnector) |
| Modifier and Type | Method and Description |
|---|---|
Comment |
get(UUID uuid)
Gets the comment by its uuid.
|
<S extends io.vertigo.dynamo.domain.model.KeyConcept> |
getComments(io.vertigo.dynamo.domain.model.URI<S> keyConceptUri)
Lists the comments as a key concerned is concerned
|
<S extends io.vertigo.dynamo.domain.model.KeyConcept> |
publish(Comment comment,
io.vertigo.dynamo.domain.model.URI<S> keyConceptUri)
Publishes a comment about a key concept.
|
void |
update(Comment comment)
Updates a comment.
|
@Inject public RedisCommentPlugin(io.vertigo.commons.impl.connectors.redis.RedisConnector redisConnector)
redisConnector - Redis connectorpublic <S extends io.vertigo.dynamo.domain.model.KeyConcept> void publish(Comment comment, io.vertigo.dynamo.domain.model.URI<S> keyConceptUri)
publish in interface CommentPlugincomment - the commentkeyConceptUri - the key concept defined by its URIpublic void update(Comment comment)
update in interface CommentPlugincomment - the commentpublic Comment get(UUID uuid)
get in interface CommentPluginuuid - the uuid of the commentpublic <S extends io.vertigo.dynamo.domain.model.KeyConcept> List<Comment> getComments(io.vertigo.dynamo.domain.model.URI<S> keyConceptUri)
getComments in interface CommentPluginkeyConceptUri - the key concept defined by its URICopyright © 2017. All Rights Reserved.