KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > workflows > model > WorkflowComment


1 package com.dotmarketing.portlets.workflows.model;
2
3 import java.util.Date JavaDoc;
4 import java.util.HashMap JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import org.apache.commons.lang.builder.ToStringBuilder;
8
9 import com.dotmarketing.beans.Inode;
10
11
12
13 public class WorkflowComment extends Inode
14 {
15     
16     private static final long serialVersionUID = 1L;
17     
18     Date JavaDoc creationDate;
19     String JavaDoc postedBy;
20     String JavaDoc comment;
21
22     public WorkflowComment () {
23         setType("workflow_comment");
24     }
25     
26     public Date JavaDoc getCreationDate() {
27         return creationDate;
28     }
29
30
31     public void setCreationDate(Date JavaDoc creationDate) {
32         this.creationDate = creationDate;
33     }
34
35
36     public String JavaDoc getComment() {
37         return comment;
38     }
39
40
41     public void setComment(String JavaDoc comment) {
42         this.comment = comment;
43     }
44
45
46     public String JavaDoc getPostedBy() {
47         return postedBy;
48     }
49
50
51     public void setPostedBy(String JavaDoc postedBy) {
52         this.postedBy = postedBy;
53     }
54
55
56     @Override JavaDoc
57     public String JavaDoc toString() {
58         return ToStringBuilder.reflectionToString(this);
59     }
60
61
62     public Map JavaDoc getMap () {
63         Map JavaDoc oMap = new HashMap JavaDoc ();
64         oMap.put("comment", this.getComment());
65         oMap.put("creationDate", this.getCreationDate());
66         oMap.put("postedBy", this.getPostedBy());
67         oMap.put("inode", this.getInode());
68         return oMap;
69     }
70 }
71
Popular Tags