Class EventCommentDto

java.lang.Object
org.opencastproject.event.comment.persistence.EventCommentDto

@Entity(name="EventComment") public class EventCommentDto extends Object
  • Constructor Details

    • EventCommentDto

      public EventCommentDto()
      Default constructor
  • Method Details

    • from

      public static EventCommentDto from(EventComment comment)
    • getId

      public long getId()
      Returns the id of this entity
      Returns:
      the id as long
    • getEventId

      public String getEventId()
      Returns the event identifier
      Returns:
      the event identifier
    • setEventId

      public void setEventId(String eventId)
      Sets the event identifier
      Parameters:
      eventId - the event identifier
    • getOrganization

      public String getOrganization()
      Returns the organization
      Returns:
      the organization
    • setOrganization

      public void setOrganization(String organization)
      Sets the organization
      Parameters:
      organization - the organization
    • setText

      public void setText(String text)
      Sets the text
      Parameters:
      text - the text
    • getText

      public String getText()
      Returns the text
      Returns:
      the text
    • setCreationDate

      public void setCreationDate(Date creationDate)
      Sets the creation date
      Parameters:
      creationDate - the creation date
    • getCreationDate

      public Date getCreationDate()
      Returns the creation date
      Returns:
      the creation date
    • setModificationDate

      public void setModificationDate(Date modificationDate)
      Sets the modification date
      Parameters:
      modificationDate - the modification date
    • getModificationDate

      public Date getModificationDate()
      Returns the modification date
      Returns:
      the modification date
    • setAuthor

      public void setAuthor(String author)
      Sets the author
      Parameters:
      author - the author
    • getAuthor

      public String getAuthor()
      Returns the author
      Returns:
      the author
    • setReason

      public void setReason(String reason)
      Sets the reason
      Parameters:
      reason - the reason
    • getReason

      public String 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

      public void setReplies(List<EventCommentReplyDto> replies)
      Sets a comment replies list.
      Parameters:
      replies - the replies list
    • getReplies

      public List<EventCommentReplyDto> getReplies()
      Returns the replies list
      Returns:
      the replies list
    • addReply

      public boolean addReply(EventCommentReplyDto reply)
      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

      public boolean removeReply(EventCommentReplyDto reply)
      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