1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.mail; 27 28 import javax.servlet.http.HttpServletRequest ; 29 30 import org.apache.struts.action.ActionErrors; 31 import org.apache.struts.action.ActionForm; 32 import org.apache.struts.action.ActionMapping; 33 34 38 public final class MailServiceForm extends ActionForm { 39 40 private int nbMimePartDatasourceFactories = 0; 42 private int nbSessionFactories = 0; 43 private int nbFactories = 0; 44 46 public int getNbMimePartDatasourceFactories() { 47 return nbMimePartDatasourceFactories; 48 } 49 public void setNbMimePartDatasourceFactories(int nbMimePartDatasourceFactories) { 50 this.nbMimePartDatasourceFactories = nbMimePartDatasourceFactories; 51 } 52 53 public int getNbSessionFactories() { 54 return nbSessionFactories; 55 } 56 public void setNbSessionFactories(int nbSessionFactories) { 57 this.nbSessionFactories = nbSessionFactories; 58 } 59 60 public int getNbFactories() { 61 return nbFactories; 62 } 63 public void setNbFactories(int nbFactories) { 64 this.nbFactories = nbFactories; 65 } 66 67 69 75 public void reset(ActionMapping mapping, HttpServletRequest request) { 76 nbMimePartDatasourceFactories = 0; 77 nbSessionFactories = 0; 78 nbFactories = 0; 79 } 80 81 91 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 92 return new ActionErrors(); 93 } 95 } 96 | Popular Tags |