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 Type
    Method
    Description
    get(UUID uuid)
    Gets the comment by its uuid.
    <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
    <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.
    void
    update(Comment comment)
    Updates 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 comment
      keyConceptURI - 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 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

      void update(Comment comment)
      Updates a comment.
      Parameters:
      comment - the comment