1 package org.roller.presentation.weblog.formbeans; 2 3 import org.apache.struts.action.ActionMapping; 4 import org.roller.RollerException; 5 import org.roller.pojos.CommentData; 6 import org.roller.presentation.forms.CommentForm; 7 8 import javax.servlet.ServletRequest ; 9 import javax.servlet.http.HttpServletRequest ; 10 import java.util.Locale ; 11 12 19 public class CommentFormEx extends CommentForm 20 { 21 private String [] deleteComments = null; 22 private String [] spamComments = null; 23 private String mEntryId = null; 24 25 public CommentFormEx() 26 { 27 super(); 28 } 29 30 public CommentFormEx(CommentData entryData, java.util.Locale locale ) throws RollerException 31 { 32 super(entryData, locale); 33 } 34 35 public String [] getDeleteComments() 36 { 37 return deleteComments; 38 } 39 40 public void setDeleteComments(String [] deleteIds) 41 { 42 deleteComments = deleteIds; 43 } 44 45 48 public String [] getSpamComments() 49 { 50 return spamComments; 51 } 52 53 public void setSpamComments(String [] spamIds) 54 { 55 spamComments = spamIds; 56 } 57 58 61 public String getWeblogEntryId() 62 { 63 return mEntryId; 64 } 65 66 69 public void setWeblogEntryId(String string) 70 { 71 mEntryId = string; 72 } 73 74 77 public void reset(ActionMapping mapping, HttpServletRequest request) 78 { 79 super.reset(mapping, request); 80 deleteComments = null; 81 spamComments = null; 82 } 83 84 87 public void reset(ActionMapping mapping, ServletRequest request) 88 { 89 super.reset(mapping, request); 90 deleteComments = null; 91 spamComments = null; 92 } 93 94 public void copyTo(org.roller.pojos.CommentData dataHolder, Locale locale) 95 throws RollerException 96 { 97 super.copyTo(dataHolder, locale); 98 if (getSpam() == null) dataHolder.setSpam(Boolean.FALSE); 99 if (getNotify() == null) dataHolder.setNotify(Boolean.FALSE); 100 } 101 } 102 103 | Popular Tags |