KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > graph > exe > Comment


1 package org.jbpm.graph.exe;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.Date JavaDoc;
5
6 import org.jbpm.security.Authentication;
7 import org.jbpm.taskmgmt.exe.TaskInstance;
8
9 public class Comment implements Serializable JavaDoc {
10
11   private static final long serialVersionUID = 1L;
12
13   protected long id = 0;
14   protected String JavaDoc actorId = null;
15   protected Date JavaDoc time = null;
16   protected String JavaDoc message = null;
17   protected Token token = null;
18   protected TaskInstance taskInstance = null;
19
20   public Comment() {
21   }
22   
23   public Comment(String JavaDoc message) {
24     this.actorId = Authentication.getAuthenticatedActorId();
25     this.time = new Date JavaDoc();
26     this.message = message;
27   }
28   
29   public Comment(String JavaDoc actorId, String JavaDoc message) {
30     this.actorId = actorId;
31     this.time = new Date JavaDoc();
32     this.message = message;
33   }
34
35   public String JavaDoc getActorId() {
36     return actorId;
37   }
38   public long getId() {
39     return id;
40   }
41   public String JavaDoc getMessage() {
42     return message;
43   }
44   public Date JavaDoc 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