KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webapp > admin > resources > UserDatabasesForm


1 /*
2  * Copyright 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.webapp.admin.resources;
18
19
20 import javax.servlet.http.HttpServletRequest JavaDoc;
21 import org.apache.struts.action.ActionError;
22 import org.apache.struts.action.ActionErrors;
23 import org.apache.struts.action.ActionForm;
24 import org.apache.struts.action.ActionMapping;
25
26
27 /**
28  * Form bean for the delete env entries page.
29  *
30  * @author Manveen Kaur
31  * @version $Revision: 1.3 $ $Date: 2004/02/27 14:59:04 $
32  * @since 4.1
33  */

34
35 public final class UserDatabasesForm extends BaseForm {
36
37
38     // ----------------------------------------------------- Instance Variables
39

40
41     // ------------------------------------------------------------- Properties
42

43
44     /**
45      * The object names of the specified user databases.
46      */

47     private String JavaDoc userDatabases[] = null;
48
49     public String JavaDoc[] getUserDatabases() {
50         return (this.userDatabases);
51     }
52
53     public void setUserDatabases(String JavaDoc userDatabases[]) {
54         this.userDatabases = userDatabases;
55     }
56
57     /**
58      * The domain of this userdatabase.
59      */

60     private String JavaDoc domain = null;
61     
62     /**
63      * Return the domain of the userdatabase this bean refers to.
64      */

65     public String JavaDoc getDomain() {
66         return this.domain;
67     }
68
69     /**
70      * Set the domain of the userdatabase this bean refers to.
71      */

72     public void setDomain(String JavaDoc domain) {
73         this.domain = domain;
74     }
75     
76     // --------------------------------------------------------- Public Methods
77

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

85     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
86
87         super.reset(mapping, request);
88         this.userDatabases = null;
89
90     }
91
92
93 }
94
Popular Tags