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 WorkflowTask extends Inode 14 { 15 16 private static final long serialVersionUID = 1L; 17 18 Date creationDate; 19 Date modDate; 20 Date dueDate; 21 String createdBy; 22 String assignedTo; 23 String belongsTo; 24 String title; 25 String description; 26 String status; 27 long webasset; 28 29 public WorkflowTask () { 30 setType("workflow_task"); 31 } 32 33 public String getAssignedTo() { 34 return assignedTo; 35 } 36 37 38 public void setAssignedTo(String assignedTo) { 39 this.assignedTo = assignedTo; 40 } 41 42 43 public String getBelongsTo() { 44 return belongsTo; 45 } 46 47 48 public void setBelongsTo(String belongsTo) { 49 this.belongsTo = belongsTo; 50 } 51 52 53 public String getCreatedBy() { 54 return createdBy; 55 } 56 57 58 public void setCreatedBy(String createdBy) { 59 this.createdBy = createdBy; 60 } 61 62 63 public Date getCreationDate() { 64 return creationDate; 65 } 66 67 68 public void setCreationDate(Date creationDate) { 69 this.creationDate = creationDate; 70 } 71 72 73 public String getDescription() { 74 return description; 75 } 76 77 78 public void setDescription(String description) { 79 this.description = description; 80 } 81 82 83 public Date getDueDate() { 84 return dueDate; 85 } 86 87 88 public void setDueDate(Date dueDate) { 89 this.dueDate = dueDate; 90 } 91 92 93 public Date getModDate() { 94 return modDate; 95 } 96 97 98 public void setModDate(Date modDate) { 99 this.modDate = modDate; 100 } 101 102 103 public String getStatus() { 104 return status; 105 } 106 107 108 public void setStatus(String status) { 109 this.status = status; 110 } 111 112 113 public String getTitle() { 114 return title; 115 } 116 117 118 public void setTitle(String title) { 119 this.title = title; 120 } 121 122 123 public long getWebasset() { 124 return webasset; 125 } 126 127 public void setWebasset(long webasset) { 128 this.webasset = webasset; 129 } 130 131 @Override 132 public String toString() { 133 return ToStringBuilder.reflectionToString(this); 134 } 135 136 137 public Map getMap () { 138 Map oMap = new HashMap (); 139 oMap.put("assignedTo", this.getAssignedTo()); 140 oMap.put("belongsTo", this.getBelongsTo()); 141 oMap.put("createdBy", this.getCreatedBy()); 142 oMap.put("cretionDate", this.getCreationDate()); 143 oMap.put("description", this.getDescription()); 144 oMap.put("dueDate", this.getDueDate()); 145 oMap.put("modDate", this.getModDate()); 146 oMap.put("title", this.getTitle()); 147 oMap.put("status", this.getStatus()); 148 oMap.put("inode", this.getInode()); 149 return oMap; 150 } 151 } 152 | Popular Tags |