1 package org.jbpm.graph.exe; 2 3 import java.io.Serializable ; 4 import java.util.Date ; 5 6 import org.jbpm.security.Authentication; 7 import org.jbpm.taskmgmt.exe.TaskInstance; 8 9 public class Comment implements Serializable { 10 11 private static final long serialVersionUID = 1L; 12 13 protected long id = 0; 14 protected String actorId = null; 15 protected Date time = null; 16 protected String message = null; 17 protected Token token = null; 18 protected TaskInstance taskInstance = null; 19 20 public Comment() { 21 } 22 23 public Comment(String message) { 24 this.actorId = Authentication.getAuthenticatedActorId(); 25 this.time = new Date (); 26 this.message = message; 27 } 28 29 public Comment(String actorId, String message) { 30 this.actorId = actorId; 31 this.time = new Date (); 32 this.message = message; 33 } 34 35 public String getActorId() { 36 return actorId; 37 } 38 public long getId() { 39 return id; 40 } 41 public String getMessage() { 42 return message; 43 } 44 public Date getTime() { 45 return time; 46 } 47 public TaskInstance getTaskInstance() { 48 return taskInstance; 49 } 50 public Token getToken() { 51 return token; 52 } 53 public void setTaskInstance(TaskInstance taskInstance) { 54 this.taskInstance = taskInstance; 55 } 56 public void setToken(Token token) { 57 this.token = token; 58 } 59 } 60 | Popular Tags |