1 18 package org.apache.roller.ui.authoring.struts.formbeans; 19 20 import java.util.Locale ; 21 22 import javax.servlet.ServletRequest ; 23 import javax.servlet.http.HttpServletRequest ; 24 25 import org.apache.struts.action.ActionMapping; 26 import org.apache.roller.RollerException; 27 import org.apache.roller.pojos.CommentData; 28 import org.apache.roller.ui.authoring.struts.forms.CommentForm; 29 30 37 public class CommentFormEx extends CommentForm 38 { 39 private String [] deleteComments = null; 40 private String [] spamComments = null; 41 private String mEntryId = null; 42 43 public CommentFormEx() 44 { 45 super(); 46 } 47 48 public CommentFormEx(CommentData entryData, java.util.Locale locale ) throws RollerException 49 { 50 super(entryData, locale); 51 } 52 53 public String [] getDeleteComments() 54 { 55 return deleteComments; 56 } 57 58 public void setDeleteComments(String [] deleteIds) 59 { 60 deleteComments = deleteIds; 61 } 62 63 66 public String [] getSpamComments() 67 { 68 return spamComments; 69 } 70 71 public void setSpamComments(String [] spamIds) 72 { 73 spamComments = spamIds; 74 } 75 76 79 public String getWeblogEntryId() 80 { 81 return mEntryId; 82 } 83 84 87 public void setWeblogEntryId(String string) 88 { 89 mEntryId = string; 90 } 91 92 95 public void reset(ActionMapping mapping, HttpServletRequest request) 96 { 97 super.reset(mapping, request); 98 deleteComments = null; 99 spamComments = null; 100 } 101 102 105 public void reset(ActionMapping mapping, ServletRequest request) 106 { 107 super.reset(mapping, request); 108 deleteComments = null; 109 spamComments = null; 110 } 111 112 public void copyTo(org.apache.roller.pojos.CommentData dataHolder, Locale locale) 113 throws RollerException 114 { 115 super.copyTo(dataHolder, locale); 116 if (getSpam() == null) dataHolder.setSpam(Boolean.FALSE); 117 if (getNotify() == null) dataHolder.setNotify(Boolean.FALSE); 118 } 119 } 120 121 | Popular Tags |