Class EventCommentReply
java.lang.Object
org.opencastproject.event.comment.EventCommentReply
Business object for comment replies.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventCommentReplycreate(org.opencastproject.util.data.Option<Long> id, String text, org.opencastproject.security.api.User author) Creates a comment replystatic EventCommentReplycreate(org.opencastproject.util.data.Option<Long> id, String text, org.opencastproject.security.api.User author, Date creationDate, Date modificationDate) Creates a comment replybooleanorg.opencastproject.security.api.UserReturns the reply authorReturns the reply creation dateorg.opencastproject.util.data.Option<Long> getId()Returns the reply idReturns the reply modification dategetText()Returns the reply textinthashCode()org.opencastproject.util.Jsons.ObjtoJson()toString()
-
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 identifiertext- the textauthor- 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 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
public org.opencastproject.security.api.User getAuthor()Returns the reply author- Returns:
- the reply author
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
public org.opencastproject.util.Jsons.Obj toJson()
-