ContainerForm.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer(s): Michel-Ange ANTON
00022  * --------------------------------------------------------------------------
00023  * $Id: ContainerForm.java,v 1.7 2004/03/19 14:31:49 sauthieg Exp $
00024  * --------------------------------------------------------------------------
00025  */
00026 
00027 package org.objectweb.jonas.webapp.jonasadmin.service.container;
00028 
00029 import java.util.ArrayList;
00030 
00031 import javax.servlet.http.HttpServletRequest;
00032 
00033 import org.apache.struts.action.ActionErrors;
00034 import org.apache.struts.action.ActionForm;
00035 import org.apache.struts.action.ActionMapping;
00036 import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx;
00037 
00038 public class ContainerForm extends ActionForm {
00039 
00040 // --------------------------------------------------------- Properties variables
00041 
00042     private String path = null;
00043     private String filename = null;
00044     private String containerName = null;
00045     private int currentNumberOfMDBType = 0;
00046     private int currentNumberOfSBFType = 0;
00047     private int currentNumberOfBMPType = 0;
00048     private int currentNumberOfSBLType = 0;
00049     private int currentNumberOfCMPType = 0;
00050     private int currentNumberOfBeanType = 0;
00051     private ArrayList ejbs = new ArrayList();
00052     private boolean inEarCase = false;
00053     private String earPath = null;
00054     private String earFilename = null;
00055 
00056 // --------------------------------------------------------- Public Methods
00057 
00065     public void reset(ActionMapping mapping, HttpServletRequest request) {
00066         containerName = null;
00067         currentNumberOfMDBType = 0;
00068         currentNumberOfSBFType = 0;
00069         currentNumberOfBMPType = 0;
00070         currentNumberOfSBLType = 0;
00071         currentNumberOfCMPType = 0;
00072         currentNumberOfBeanType = 0;
00073         inEarCase = false;
00074         earPath = null;
00075         earFilename = null;
00076     }
00077 
00088     public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
00089         ActionErrors oErrors = new ActionErrors();
00090         return oErrors;
00091     }
00092 
00093 // --------------------------------------------------------- Properties Methods
00094 
00095     public String getFilename() {
00096         return filename;
00097     }
00098 
00099     public String getContainerName() {
00100         return containerName;
00101     }
00102 
00103     public int getCurrentNumberOfMDBType() {
00104         return currentNumberOfMDBType;
00105     }
00106 
00107     public int getCurrentNumberOfSBFType() {
00108         return currentNumberOfSBFType;
00109     }
00110 
00111     public int getCurrentNumberOfBMPType() {
00112         return currentNumberOfBMPType;
00113     }
00114 
00115     public int getCurrentNumberOfSBLType() {
00116         return currentNumberOfSBLType;
00117     }
00118 
00119     public int getCurrentNumberOfCMPType() {
00120         return currentNumberOfCMPType;
00121     }
00122 
00123     public int getCurrentNumberOfBeanType() {
00124         return currentNumberOfBeanType;
00125     }
00126 
00127     public void setFilename(String filename) {
00128         this.filename = filename;
00129     }
00130 
00131     public void setContainerName(String containerName) {
00132         this.containerName = containerName;
00133     }
00134 
00135     public void setCurrentNumberOfMDBType(int currentNumberOfMDBType) {
00136         this.currentNumberOfMDBType = currentNumberOfMDBType;
00137     }
00138 
00139     public void setCurrentNumberOfSBFType(int currentNumberOfSBFType) {
00140         this.currentNumberOfSBFType = currentNumberOfSBFType;
00141     }
00142 
00143     public void setCurrentNumberOfBMPType(int currentNumberOfBMPType) {
00144         this.currentNumberOfBMPType = currentNumberOfBMPType;
00145     }
00146 
00147     public void setCurrentNumberOfSBLType(int currentNumberOfSBLType) {
00148         this.currentNumberOfSBLType = currentNumberOfSBLType;
00149     }
00150 
00151     public void setCurrentNumberOfCMPType(int currentNumberOfCMPType) {
00152         this.currentNumberOfCMPType = currentNumberOfCMPType;
00153     }
00154 
00155     public void setCurrentNumberOfBeanType(int currentNumberOfBeanType) {
00156         this.currentNumberOfBeanType = currentNumberOfBeanType;
00157     }
00158 
00159     public ArrayList getEjbs() {
00160         return ejbs;
00161     }
00162 
00163     public void setEjbs(ArrayList ejbs) {
00164         this.ejbs = ejbs;
00165     }
00166 
00167     public String getPath() {
00168         return path;
00169     }
00170 
00171     public void setPath(String path) {
00172         this.path = path;
00173     }
00174 
00175     public boolean isInEarCase() {
00176         return inEarCase;
00177     }
00178 
00179     public void setInEarCase(boolean inEarCase) {
00180         this.inEarCase = inEarCase;
00181     }
00182 
00183     public String getEarPath() {
00184         return earPath;
00185     }
00186 
00187     public void setEarPath(String p_EarPath) {
00188         earPath = null;
00189         earFilename = null;
00190         if (p_EarPath != null) {
00191             earPath = p_EarPath;
00192             earFilename = JonasAdminJmx.extractFilename(earPath);
00193         }
00194     }
00195 
00196     public String getEarFilename() {
00197         return earFilename;
00198     }
00199 
00200 }

Generated on Tue Feb 15 15:05:31 2005 for JOnAS by  doxygen 1.3.9.1