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 Detail

      • publish

        <S extends KeyConcept> void publish​(Comment comment,
                                            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 KeyConceptList<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