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 DategetCreatedAt()The time the comment was created.StringgetHeader()The comment header.LonggetId()The comment id (PK).StringgetMessage()The comment message.LonggetParent()The comment parent.UsergetUser()The comment user.StringgetUserIpAddress()The comment user ip address.StringgetUserSessionId()The comment user session id.StringtoString()
-
-
-
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.
-
-