Interface Comment

    • Method Detail

      • getId

        String getId()
        Gets comment id.
        Returns:
        the id
      • setId

        @Deprecated(since="11.1")
        void setId​(String id)
        Deprecated.
        since 11.1, you should use document adapter factory instead
        Sets comment id.
        Parameters:
        id - the id
      • setParentId

        void setParentId​(String parentId)
        Sets parent id.
        Parameters:
        parentId - the parent id
      • addAncestorId

        @Deprecated(since="11.1")
        void addAncestorId​(String ancestorId)
        Deprecated.
        since 11.1, should be filled by document adapater factory
        Adds an ancestor id.
        Parameters:
        ancestorId - the ancestor id
      • setAuthor

        void setAuthor​(String author)
        Sets comment author.
        Parameters:
        author - the author
      • setText

        void setText​(String text)
        Sets comment text.
        Parameters:
        text - the text
      • setCreationDate

        void setCreationDate​(Instant creationDate)
        Sets comment creation date.
        Parameters:
        creationDate - the creation date
      • setModificationDate

        void setModificationDate​(Instant modificationDate)
        Sets comment modification date.
        Parameters:
        modificationDate - the modification date
      • getDocument

        DocumentModel getDocument()
        Gets the document model backing this pojo.
        Returns:
        the document model backing this pojo
        API Note:
        the returned document is detached