Class EventCommentReply
java.lang.Object
org.opencastproject.event.comment.EventCommentReply
Business object for comment replies.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventCommentReplyCreates a comment replystatic EventCommentReplyCreates a comment replybooleanReturns the reply authorReturns the reply creation dategetId()Returns the reply idReturns the reply modification dategetText()Returns the reply textinthashCode()toJson()toString()
-
Method Details
-
create
Creates a comment reply- Parameters:
id- the optional reply identifiertext- the textauthor- the author of the comment reply- Throws:
IllegalArgumentException- if some of the parameters aren't set
-
create
public static EventCommentReply create(Optional<Long> id, String text, User author, Date creationDate, Date modificationDate) Creates a comment reply- Parameters:
id- the optional reply identifiertext- the textauthor- the author of the comment replycreationDate- the creation datemodificationDate- the modification date- Throws:
IllegalArgumentException- if some of the parameters aren't set
-
getId
Returns the reply id- Returns:
- the reply id
-
getText
Returns the reply text- Returns:
- the reply text
-
getCreationDate
Returns the reply creation date- Returns:
- the reply creation date
-
getModificationDate
Returns the reply modification date- Returns:
- the reply modification date
-
getAuthor
Returns the reply author- Returns:
- the reply author
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
-