Class EventCommentReply

java.lang.Object
org.opencastproject.event.comment.EventCommentReply

public final class EventCommentReply extends Object
Business object for comment replies.
  • Method Details

    • create

      public static EventCommentReply create(org.opencastproject.util.data.Option<Long> id, String text, org.opencastproject.security.api.User author)
      Creates a comment reply
      Parameters:
      id - the optional reply identifier
      text - the text
      author - the author of the comment reply
      Throws:
      IllegalArgumentException - if some of the parameters aren't set
    • create

      public static EventCommentReply create(org.opencastproject.util.data.Option<Long> id, String text, org.opencastproject.security.api.User author, Date creationDate, Date modificationDate)
      Creates a comment reply
      Parameters:
      id - the optional reply identifier
      text - the text
      author - the author of the comment reply
      creationDate - the creation date
      modificationDate - the modification date
      Throws:
      IllegalArgumentException - if some of the parameters aren't set
    • getId

      public org.opencastproject.util.data.Option<Long> getId()
      Returns the reply id
      Returns:
      the reply id
    • getText

      public String getText()
      Returns the reply text
      Returns:
      the reply text
    • getCreationDate

      public Date getCreationDate()
      Returns the reply creation date
      Returns:
      the reply creation date
    • getModificationDate

      public Date getModificationDate()
      Returns the reply modification date
      Returns:
      the reply modification date
    • getAuthor

      public org.opencastproject.security.api.User getAuthor()
      Returns the reply author
      Returns:
      the reply author
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public org.opencastproject.util.Jsons.Obj toJson()