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 WorkflowHistory extends Inode 14 { 15 16 private static final long serialVersionUID = 1L; 17 18 Date creationDate; 19 String madeBy; 20 String changeDescription; 21 22 public WorkflowHistory () { 23 setType("workflow_history"); 24 } 25 26 public Date getCreationDate() { 27 return creationDate; 28 } 29 30 public void setCreationDate(Date creationDate) { 31 this.creationDate = creationDate; 32 } 33 34 public String getChangeDescription() { 35 return changeDescription; 36 } 37 38 public void setChangeDescription(String changeDescription) { 39 this.changeDescription = changeDescription; 40 } 41 42 public String getMadeBy() { 43 return madeBy; 44 } 45 46 public void setMadeBy(String madeBy) { 47 this.madeBy = madeBy; 48 } 49 50 @Override 51 public String toString() { 52 return ToStringBuilder.reflectionToString(this); 53 } 54 55 56 public Map getMap () { 57 Map oMap = new HashMap (); 58 oMap.put("inode", this.getInode()); 59 oMap.put("creationDate", this.getCreationDate()); 60 oMap.put("madeBy", this.getMadeBy()); 61 oMap.put("changeDescription", this.getChangeDescription()); 62 return oMap; 63 } 64 } 65 | Popular Tags |