| 1 package com.dotmarketing.portlets.workflows.model; 2 3 import java.util.Date ; 4 import java.util.HashMap ; 5 import java.util.Map ; 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 creationDate; 19 String postedBy; 20 String comment; 21 22 public WorkflowComment () { 23 setType("workflow_comment"); 24 } 25 26 public Date getCreationDate() { 27 return creationDate; 28 } 29 30 31 public void setCreationDate(Date creationDate) { 32 this.creationDate = creationDate; 33 } 34 35 36 public String getComment() { 37 return comment; 38 } 39 40 41 public void setComment(String comment) { 42 this.comment = comment; 43 } 44 45 46 public String getPostedBy() { 47 return postedBy; 48 } 49 50 51 public void setPostedBy(String postedBy) { 52 this.postedBy = postedBy; 53 } 54 55 56 @Override  57 public String toString() { 58 return ToStringBuilder.reflectionToString(this); 59 } 60 61 62 public Map getMap () { 63 Map oMap = new HashMap (); 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 |