Class MemoryCommentPlugin

  • All Implemented Interfaces:
    io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin, CommentPlugin

    public final class MemoryCommentPlugin
    extends Object
    implements CommentPlugin
    Author:
    pchretien
    • Constructor Detail

      • MemoryCommentPlugin

        public MemoryCommentPlugin()
    • Method Detail

      • publish

        public <S extends KeyConcept> void publish​(Comment comment,
                                                   UID<S> uid)
        Publishes a comment about a key concept.
        Specified by:
        publish in interface CommentPlugin
        Parameters:
        comment - the comment
        uid - the key concept defined by its URI
      • update

        public void update​(Comment comment)
        Updates a comment.
        Specified by:
        update in interface CommentPlugin
        Parameters:
        comment - the comment
      • get

        public Comment get​(UUID uuid)
        Gets the comment by its uuid.
        Specified by:
        get in interface CommentPlugin
        Parameters:
        uuid - the uuid of the comment
        Returns:
        the comment
      • getComments

        public <S extends KeyConceptList<Comment> getComments​(UID<S> uid)
        Lists the comments as a key concerned is concerned
        Specified by:
        getComments in interface CommentPlugin
        Parameters:
        uid - the key concept defined by its URI
        Returns:
        the list of comments