Interface CommentableAmetysObject

    • Method Detail

      • createComment

        Comment createComment​(String commentId,
                              ZonedDateTime creationDate)
        Creates a comment with the given id and creation date This method allow to create a comment from existing data (ex: data import from archive) The id is not generated here, the source is trusted. Be careful using this method
        Parameters:
        commentId - the comment's id
        creationDate - the comment's creation date
        Returns:
        the new comment
      • getComments

        List<CommentgetComments​(boolean includeNotValidatedComments,
                                  boolean includeValidatedComments)
                           throws AmetysRepositoryException
        Get the list of available comments (validated, not validated, both or none :))
        Parameters:
        includeNotValidatedComments - true to get the non validated comments.
        includeValidatedComments - true to get the validated comment.
        Returns:
        A non null list of comments on the ametys object.
        Throws:
        AmetysRepositoryException - if an error occurred