Class EventCommentDto
java.lang.Object
org.opencastproject.event.comment.persistence.EventCommentDto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddReply(EventCommentReplyDto reply) Add a reply to the commentstatic EventCommentDtofrom(EventComment comment) Returns the authorReturns the creation dateReturns the event identifierlonggetId()Returns the id of this entityReturns the modification dateReturns the organizationReturns the reasonReturns the replies listgetText()Returns the textbooleanReturns whether the status is resolvedbooleanremoveReply(EventCommentReplyDto reply) Remove a reply from the commentvoidSets the authorvoidsetCreationDate(Date creationDate) Sets the creation datevoidsetEventId(String eventId) Sets the event identifiervoidsetModificationDate(Date modificationDate) Sets the modification datevoidsetOrganization(String organization) Sets the organizationvoidSets the reasonvoidsetReplies(List<EventCommentReplyDto> replies) Sets a comment replies list.voidsetResolvedStatus(boolean resolvedStatus) Sets whether the status is resolvedvoidSets the texttoComment(org.opencastproject.security.api.UserDirectoryService userDirectoryService, org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) Returns the business object of this comment
-
Constructor Details
-
EventCommentDto
public EventCommentDto()Default constructor
-
-
Method Details
-
from
-
getId
public long getId()Returns the id of this entity- Returns:
- the id as long
-
getEventId
Returns the event identifier- Returns:
- the event identifier
-
setEventId
Sets the event identifier- Parameters:
eventId- the event identifier
-
getOrganization
Returns the organization- Returns:
- the organization
-
setOrganization
Sets the organization- Parameters:
organization- the organization
-
setText
Sets the text- Parameters:
text- the text
-
getText
Returns the text- Returns:
- the text
-
setCreationDate
Sets the creation date- Parameters:
creationDate- the creation date
-
getCreationDate
Returns the creation date- Returns:
- the creation date
-
setModificationDate
Sets the modification date- Parameters:
modificationDate- the modification date
-
getModificationDate
Returns the modification date- Returns:
- the modification date
-
setAuthor
Sets the author- Parameters:
author- the author
-
getAuthor
Returns the author- Returns:
- the author
-
setReason
Sets the reason- Parameters:
reason- the reason
-
getReason
Returns the reason- Returns:
- the reason
-
setResolvedStatus
public void setResolvedStatus(boolean resolvedStatus) Sets whether the status is resolved- Parameters:
resolvedStatus- whether the status is resolved
-
isResolvedStatus
public boolean isResolvedStatus()Returns whether the status is resolved- Returns:
- whether the status is resolved
-
setReplies
Sets a comment replies list.- Parameters:
replies- the replies list
-
getReplies
Returns the replies list- Returns:
- the replies list
-
addReply
Add a reply to the comment- Parameters:
reply- the reply to add to this comment- Returns:
- true if this collection changed as a result of the call
-
removeReply
Remove a reply from the comment- Parameters:
reply- the reply to remove from this comment- Returns:
- true if this collection changed as a result of the call
-
toComment
public EventComment toComment(org.opencastproject.security.api.UserDirectoryService userDirectoryService, org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) Returns the business object of this comment- Returns:
- the business object model of this comment
-