KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > joramplatform > JoramLocalQueueForm


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  */

21
22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform;
23
24 import java.util.ArrayList JavaDoc;
25
26 import javax.servlet.http.HttpServletRequest JavaDoc;
27
28 import org.apache.struts.action.ActionErrors;
29 import org.apache.struts.action.ActionForm;
30 import org.apache.struts.action.ActionMapping;
31
32 /**
33  * Form bean for the Joram local queue form page.
34  * @author Frederic MAISTRE
35  */

36
37 public final class JoramLocalQueueForm extends ActionForm {
38
39 // ------------------------------------------------------------- Properties Variables
40

41     private String JavaDoc name = null;
42     private String JavaDoc id = null;
43     private ArrayList JavaDoc listUsedByEjb = new ArrayList JavaDoc();
44
45 // ------------------------------------------------------------- Properties Methods
46
/**
47      * @return Returns the listUsedByEjb.
48      */

49     public ArrayList JavaDoc getListUsedByEjb() {
50         return listUsedByEjb;
51     }
52     /**
53      * @param listUsedByEjb The listUsedByEjb to set.
54      */

55     public void setListUsedByEjb(ArrayList JavaDoc listUsedByEjb) {
56         this.listUsedByEjb = listUsedByEjb;
57     }
58
59     public String JavaDoc getName() {
60         return name;
61     }
62
63     public void setName(String JavaDoc name) {
64         this.name = name;
65     }
66
67     public String JavaDoc getId() {
68         return id;
69     }
70
71     public void setId(String JavaDoc id) {
72         this.id = id;
73     }
74
75 // ------------------------------------------------------------- Public Methods
76

77     /**
78      * Reset all properties to their default values.
79      *
80      * @param mapping The mapping used to select this instance
81      * @param request The servlet request we are processing
82      */

83     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
84         name = null;
85         id = null;
86         listUsedByEjb = new ArrayList JavaDoc();
87     }
88
89     /**
90      * Validate the properties that have been set from this HTTP request,
91      * and return an <code>ActionErrors</code> object that encapsulates any
92      * validation errors that have been found. If no errors are found, return
93      * <code>null</code> or an <code>ActionErrors</code> object with no
94      * recorded error messages.
95      *
96      * @param mapping The mapping used to select this instance
97      * @param request The servlet request we are processing
98      */

99     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
100         return new ActionErrors();
101     }
102
103 }
104
Popular Tags