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 WorkflowCommentForm extends ValidatorForm 15 { 16 17 private static final long serialVersionUID = 1L; 18 19 long inode; 20 Date creationDate; 21 String postedBy; 22 String comment; 23 24 25 public long getInode() { 26 return inode; 27 } 28 29 30 public void setInode(long inode) { 31 this.inode = inode; 32 } 33 34 35 public Date getCreationDate() { 36 return creationDate; 37 } 38 39 40 public void setCreationDate(Date creationDate) { 41 this.creationDate = creationDate; 42 } 43 44 45 public String getComment() { 46 return comment; 47 } 48 49 50 public void setComment(String comment) { 51 this.comment = comment; 52 } 53 54 55 public String getPostedBy() { 56 return postedBy; 57 } 58 59 60 public void setPostedBy(String postedBy) { 61 this.postedBy = postedBy; 62 } 63 64 65 @Override 66 public String toString() { 67 return ToStringBuilder.reflectionToString(this); 68 } 69 70 public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) { 71 ActionErrors ae = new ActionErrors(); 72 ae = super.validate(arg0,arg1); 73 return ae; 74 } 75 76 } 77 | Popular Tags |