public class CommentEntityImpl extends Object implements CommentEntity, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
action |
protected String |
fullMessage |
protected String |
id |
protected String |
message |
static String |
MESSAGE_PARTS_MARKER |
static Pattern |
MESSAGE_PARTS_MARKER_REGEX |
protected String |
processInstanceId |
protected String |
taskId |
protected Date |
time |
protected String |
type |
protected String |
userId |
TYPE_COMMENT, TYPE_EVENT
ACTION_ADD_ATTACHMENT, ACTION_ADD_COMMENT, ACTION_ADD_GROUP_LINK, ACTION_ADD_USER_LINK, ACTION_DELETE_ATTACHMENT, ACTION_DELETE_GROUP_LINK, ACTION_DELETE_USER_LINK
Constructor and Description |
---|
CommentEntityImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Indicates the type of of action and also indicates the meaning of the parts as exposed in
Event.getMessageParts() |
String |
getFullMessage()
the full comment message the user had related to the task and/or process instance
|
byte[] |
getFullMessageBytes() |
String |
getId()
unique identifier for this comment
|
String |
getMessage()
The message that can be used in case this action only has a single message part.
|
List<String> |
getMessageParts()
The meaning of the message parts is defined by the action as you can find in
Event.getAction() |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database.
|
String |
getProcessInstanceId()
reference to the process instance on which this comment was made
|
String |
getTaskId()
reference to the task on which this comment was made
|
Date |
getTime()
time and date when the user made the comment
|
String |
getType()
reference to the type given to the comment
|
String |
getUserId()
reference to the user that made the comment
|
void |
setAction(String action) |
void |
setFullMessage(String fullMessage) |
void |
setFullMessageBytes(byte[] fullMessageBytes) |
void |
setId(String id) |
void |
setMessage(String message) |
void |
setMessage(String[] messageParts) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setTaskId(String taskId) |
void |
setTime(Date time) |
void |
setType(String type) |
void |
setUserId(String userId) |
protected String id
protected String type
protected String userId
protected Date time
protected String taskId
protected String processInstanceId
protected String action
protected String message
protected String fullMessage
public static String MESSAGE_PARTS_MARKER
public static Pattern MESSAGE_PARTS_MARKER_REGEX
public Object getPersistentState()
Entity
getPersistentState
in interface Entity
public byte[] getFullMessageBytes()
getFullMessageBytes
in interface CommentEntity
public void setFullMessageBytes(byte[] fullMessageBytes)
setFullMessageBytes
in interface CommentEntity
public void setMessage(String[] messageParts)
setMessage
in interface CommentEntity
public List<String> getMessageParts()
Event
Event.getAction()
getMessageParts
in interface Event
public String getId()
Comment
public String getUserId()
Comment
public void setUserId(String userId)
setUserId
in interface CommentEntity
public String getTaskId()
Comment
public void setTaskId(String taskId)
setTaskId
in interface CommentEntity
public String getMessage()
Event
getMessage
in interface Event
public void setMessage(String message)
setMessage
in interface CommentEntity
public Date getTime()
Comment
public void setTime(Date time)
setTime
in interface CommentEntity
public String getProcessInstanceId()
Comment
getProcessInstanceId
in interface Comment
getProcessInstanceId
in interface Event
public void setProcessInstanceId(String processInstanceId)
setProcessInstanceId
in interface CommentEntity
public String getType()
Comment
public void setType(String type)
setType
in interface CommentEntity
public String getFullMessage()
Comment
getFullMessage
in interface Comment
TaskService.getTaskComments(String)
public void setFullMessage(String fullMessage)
setFullMessage
in interface CommentEntity
public String getAction()
Event
Event.getMessageParts()
public void setAction(String action)
setAction
in interface CommentEntity
Copyright © 2015 Alfresco. All rights reserved.