Class CommentManagerImpl

java.lang.Object
io.vertigo.social.impl.comment.CommentManagerImpl
All Implemented Interfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, CommentManager

public final class CommentManagerImpl extends Object implements CommentManager
Author:
pchretien
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    getComments(io.vertigo.datamodel.data.model.UID<? extends io.vertigo.datamodel.data.model.KeyConcept> keyConceptUri)
    Gets a list of sorted comments published on this keyConcept.
    void
    publish(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, Comment comment, io.vertigo.datamodel.data.model.UID<? extends io.vertigo.datamodel.data.model.KeyConcept> keyConceptUri)
    Publishes a comment on a key concept.
    void
    update(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, Comment comment)
    Updates a comment.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommentManagerImpl

      @Inject public CommentManagerImpl(CommentPlugin commentsPlugin)
      Constructor.
      Parameters:
      commentsPlugin - Comment plugin
  • Method Details

    • publish

      public void publish(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, Comment comment, io.vertigo.datamodel.data.model.UID<? extends io.vertigo.datamodel.data.model.KeyConcept> keyConceptUri)
      Publishes a comment on a key concept.
      Specified by:
      publish in interface CommentManager
      Parameters:
      accountURI - the account defined by its UID
      comment - the comment
      keyConceptUri - the UID of the keyConcept
    • getComments

      public List<Comment> getComments(io.vertigo.datamodel.data.model.UID<? extends io.vertigo.datamodel.data.model.KeyConcept> keyConceptUri)
      Gets a list of sorted comments published on this keyConcept.
      Specified by:
      getComments in interface CommentManager
      Parameters:
      keyConceptUri - the UID of the keyConcept
      Returns:
      the list of sorted comments
    • update

      public void update(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, Comment comment)
      Updates a comment.
      Specified by:
      update in interface CommentManager
      Parameters:
      accountURI - the account defined by its UID
      comment - the updated comment