1 package com.dotmarketing.portlets.workflows.struts; 2 3 import java.util.Date ; 4 5 import javax.servlet.http.HttpServletRequest ; 6 7 import org.apache.commons.lang.builder.ToStringBuilder; 8 import org.apache.struts.action.ActionErrors; 9 import org.apache.struts.action.ActionMapping; 10 import org.apache.struts.validator.ValidatorForm; 11 12 13 14 public class WorkflowTaskForm extends ValidatorForm 15 { 16 17 private static final long serialVersionUID = 1L; 18 19 long inode; 20 Date creationDate; 21 Date modDate; 22 Date dueDate; 23 String dueDateMonth; 24 String dueDateDay; 25 String dueDateYear; 26 boolean noDueDate; 27 String createdBy; 28 String assignedTo; 29 String belongsTo; 30 String title; 31 String description; 32 int status; 33 long webasset = 0; 34 35 36 public long getInode() { 37 return inode; 38 } 39 40 41 public void setInode(long inode) { 42 this.inode = inode; 43 } 44 45 46 public String getAssignedTo() { 47 return assignedTo; 48 } 49 50 51 public void setAssignedTo(String assignedTo) { 52 this.assignedTo = assignedTo; 53 } 54 55 56 public String getBelongsTo() { 57 return belongsTo; 58 } 59 60 61 public void setBelongsTo(String belongsTo) { 62 this.belongsTo = belongsTo; 63 } 64 65 66 public String getCreatedBy() { 67 return createdBy; 68 } 69 70 71 public void setCreatedBy(String createdBy) { 72 this.createdBy = createdBy; 73 } 74 75 76 public Date getCreationDate() { 77 return creationDate; 78 } 79 80 81 public void setCreationDate(Date creationDate) { 82 this.creationDate = creationDate; 83 } 84 85 86 public String getDescription() { 87 return description; 88 } 89 90 91 public void setDescription(String description) { 92 this.description = description; 93 } 94 95 96 public Date getDueDate() { 97 return dueDate; 98 } 99 100 101 public void setDueDate(Date dueDate) { 102 this.dueDate = dueDate; 103 } 104 105 106 public Date getModDate() { 107 return modDate; 108 } 109 110 111 public void setModDate(Date modDate) { 112 this.modDate = modDate; 113 } 114 115 116 public int getStatus() { 117 return status; 118 } 119 120 121 public void setStatus(int status) { 122 this.status = status; 123 } 124 125 126 public String getTitle() { 127 return title; 128 } 129 130 131 public void setTitle(String title) { 132 this.title = title; 133 } 134 135 136 137 public String getDueDateDay() { 138 return dueDateDay; 139 } 140 141 142 public void setDueDateDay(String dueDateDay) { 143 this.dueDateDay = dueDateDay; 144 } 145 146 147 public String getDueDateMonth() { 148 return dueDateMonth; 149 } 150 151 152 public void setDueDateMonth(String dueDateMonth) { 153 this.dueDateMonth = dueDateMonth; 154 } 155 156 157 public String getDueDateYear() { 158 return dueDateYear; 159 } 160 161 162 public void setDueDateYear(String dueDateYear) { 163 this.dueDateYear = dueDateYear; 164 } 165 166 167 public boolean isNoDueDate() { 168 return noDueDate; 169 } 170 171 172 public void setNoDueDate(boolean noDueDate) { 173 this.noDueDate = noDueDate; 174 } 175 176 177 178 public long getWebasset() { 179 return webasset; 180 } 181 182 183 public void setWebasset(long webasset) { 184 this.webasset = webasset; 185 } 186 187 188 @Override 189 public String toString() { 190 return ToStringBuilder.reflectionToString(this); 191 } 192 193 public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) { 194 ActionErrors ae = new ActionErrors(); 195 ae = super.validate(arg0,arg1); 196 return ae; 197 } 198 } 199 | Popular Tags |