Interface CommentManager

  • All Superinterfaces:
    io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent
    All Known Implementing Classes:
    CommentManagerImpl

    public interface CommentManager
    extends io.vertigo.core.node.component.Component
    Author:
    pchretien
    • Method Detail

      • getComments

        List<Comment> getComments​(UID<? extends KeyConcept> keyConceptUID)
        Gets a list of sorted comments published on this keyConcept.
        Parameters:
        keyConceptUID - the UID of the keyConcept
        Returns:
        the list of sorted comments
      • publish

        void publish​(UID<Account> accountUID,
                     Comment comment,
                     UID<? extends KeyConcept> keyConceptUID)
        Publishes a comment on a key concept.
        Parameters:
        accountUID - the account defined by its UID
        comment - the comment
        keyConceptUID - the UID of the keyConcept
      • update

        void update​(UID<Account> accountUID,
                    Comment comment)
        Updates a comment.
        Parameters:
        accountUID - the account defined by its UID
        comment - the updated comment