Interface ICommentBase<T extends ICommentBase<T>>

Type Parameters:
T - particular comment type
All Superinterfaces:
IAdaptable, IChangeListener, IHasCustomValues, IHasValues, IPObject, IUniqueObject
All Known Subinterfaces:
IComment, IModuleComment, IRichPageComment, ITestRunComment

public interface ICommentBase<T extends ICommentBase<T>> extends IUniqueObject
Since:
3.5.0
Author:
Stepan Roh
  • Field Details

  • Method Details

    • getAuthor

      IUser getAuthor()
    • getCreated

      Date getCreated()
    • getText

      @Nullable Text getText()
    • getChildComments

      @NotNull IPObjectList<T> getChildComments()
      Since:
      3.1.1
    • getRootComment

      @NotNull T getRootComment()
      Since:
      3.1.1
    • getParentComment

      @Nullable T getParentComment()
      Since:
      3.1.1
    • createChildComment

      @NotNull T createChildComment(Text text)
      Shortcut for createChildComment(text, true).
      Since:
      3.1.1
      See Also:
    • createChildComment

      @NotNull T createChildComment(Text text, boolean reopen)
      Creates a child comment and optionally reopens the comment thread, if it is resolved. If the thread is reopened, IPObject.save() is called on the root comment.
      Since:
      3.7.1
    • getTags

      Since:
      3.7.1
    • setResolvedComment

      void setResolvedComment(boolean resolved)
      Sets the resolved state of this comment. Can be used only for the root comments.
      Since:
      3.7.1
    • isResolvedComment

      boolean isResolvedComment()
      Checks if this comment is in a resolved comments thread.
      Since:
      3.7.1
    • getSignatureData

      @Nullable ISignatureData getSignatureData()
      Signature related data.
      Since:
      3.9.0
      See Also:
    • setSignatureData

      @NotNull ISignatureData setSignatureData(@NotNull IWorkflowSignature workflowSignature, @Nullable String workflowActionId)
      Sets signature data. Adds the tag ICommentTagOpt.OPT_SIGNATURES if it is missing.
      Returns:
      the created signature data
      Since:
      3.9.0
    • can

      @NotNull com.polarion.platform.persistence.internal.ICommentPermissions can()
      Returns the permissions for this object
      Specified by:
      can in interface IPObject
      Since:
      3.8.2
    • getTrackerService

      @NotNull ITrackerService getTrackerService()
      Since:
      3.10.0