Class AddCommentRequest

  • All Implemented Interfaces:
    Serializable

    public class AddCommentRequest
    extends Object
    implements Serializable
    The properties of the comment to be added.
    See Also:
    Serialized Form
    • Constructor Detail

      • AddCommentRequest

        public AddCommentRequest()
    • Method Detail

      • setBaseResourceId

        public void setBaseResourceId​(UUID baseResourceId)
        Sets the ID of the resource which the new comment should be attached to. This is a convenience method for setting base resource ID.
        Parameters:
        baseResourceId - the ID of the resource which the new comment should be attached to
      • setBaseResourceType

        public void setBaseResourceType​(ResourceType baseResourceType)
        Sets the type of the resource which the new comment should be attached to. This is a convenience method for setting base resource type.
        Parameters:
        baseResourceType - the type of the resource which the new comment should be attached to
      • getContent

        @NotNull
        public @NotNull String getContent()
        Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax [@User:$userId] where $userId is the ID of mentioned user. For example: [@User:00000000-0000-0000-0000-000000900002].
      • getBaseResource

        @NotNull
        public @NotNull ResourceReference getBaseResource()
        Required. The resource which the new comment should be attached to.
      • getParentId

        public UUID getParentId()
        The ID of the parent comment. If not null - the comment is the reply for the parent comment.
      • setContent

        public void setContent​(@NotNull
                               @NotNull String content)
        Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax [@User:$userId] where $userId is the ID of mentioned user. For example: [@User:00000000-0000-0000-0000-000000900002].
      • setBaseResource

        public void setBaseResource​(@NotNull
                                    @NotNull ResourceReference baseResource)
        Required. The resource which the new comment should be attached to.
      • setParentId

        public void setParentId​(UUID parentId)
        The ID of the parent comment. If not null - the comment is the reply for the parent comment.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object