Package com.avoka.tm.vo
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 Summary
Constructors Constructor Description Comment()
Comment(com.avoka.fc.core.entity.JobComment jobComment)
Create a comment object from job comment.Comment(com.avoka.fc.core.entity.SubmissionComment submissionComment)
Create a comment object from submission comment.Comment(Long parent, String header, String message, User user)
Create a comment object with the given arguments.Comment(String header, String message, User user)
Create a comment object with the given arguments.Comment(Map<String,Object> fields)
Create a unit testing Comment value object with the given fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreatedAt()
The time the comment was created.String
getHeader()
The comment header.Long
getId()
The comment id (PK).String
getMessage()
The comment message.Long
getParent()
The comment parent.User
getUser()
The comment user.String
getUserIpAddress()
The comment user ip address.String
getUserSessionId()
The comment user session id.String
toString()
-
-
-
Constructor Detail
-
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 commentmessage
- the message of the commentuser
- 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 commentheader
- the header of the commentmessage
- the message of the commentuser
- the user of the comment
-
-
Method Detail
-
toString
public String toString()
-
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.
-
-