Class Comment

java.lang.Object
com.avoka.tm.vo.Comment

public class Comment extends Object
Provide a Job or Transaction Comment value object class.
Since:
21.5.0
  • Constructor Details

    • Comment

      public Comment()
    • Comment

      public Comment(com.avoka.fc.core.entity.SubmissionComment submissionComment)
      Create a comment object from submission comment.
      Parameters:
      submissionComment - submission comment
    • Comment

      public Comment(com.avoka.fc.core.entity.JobComment jobComment)
      Create a comment object from job comment.
      Parameters:
      jobComment - the job comment
    • Comment

      public Comment(String header, String message, User user)
      Create a comment object with the given arguments.
      Parameters:
      header - the header of the comment
      message - the message of the comment
      user - the user of the comment
    • Comment

      public Comment(Long parent, String header, String message, User user)
      Create a comment object with the given arguments.
      Parameters:
      parent - the parent of the comment
      header - the header of the comment
      message - the message of the comment
      user - the user of the comment
    • Comment

      public Comment(Map<String,Object> fields)
      Create a unit testing Comment value object with the given fields.
      Parameters:
      fields - the comment entity fields (required)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.
    • getId

      public Long getId()
      The comment id (PK).
    • getParent

      public Long getParent()
      The comment parent.
    • getHeader

      public String getHeader()
      The comment header.
    • getMessage

      public String getMessage()
      The comment message.
    • getUser

      public User getUser()
      The comment user.
    • getCreatedAt

      public Date getCreatedAt()
      The time the comment was created.
    • getUserIpAddress

      public String getUserIpAddress()
      The comment user ip address.
    • getUserSessionId

      public String getUserSessionId()
      The comment user session id.