001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: ResourceAdapterASForm.java 6648 2005-04-26 16:19:08Z ehardesty $
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.webapp.jonasadmin.service.resource;
027:
028: import java.net.URL;
029: import java.util.ArrayList;
030: import java.util.Collections;
031: import java.util.Enumeration;
032: import java.util.Iterator;
033: import java.util.List;
034: import java.util.Properties;
035:
036: import javax.management.ObjectName;
037:
038: import javax.servlet.http.HttpServletRequest;
039:
040: import org.apache.struts.action.ActionErrors;
041: import org.apache.struts.action.ActionForm;
042: import org.apache.struts.action.ActionMapping;
043: import org.objectweb.jonas.webapp.jonasadmin.Jlists;
044: import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx;
045: import org.objectweb.jonas_rar.deployment.api.RequiredConfigPropertyDesc;
046:
047: /**
048: * @author Michel-Ange ANTON
049: */
050: public class ResourceAdapterASForm extends ActionForm {
051:
052: // --------------------------------------------------------- Properties variables
053:
054: private String description = null;
055: private String name = null;
056: private ArrayList listProperties = new ArrayList();
057: private ObjectName oName = null;
058:
059: private ArrayList listUsedByMdb = new ArrayList();
060:
061: // --------------------------------------------------------- Public Methods
062:
063: public void reset(ActionMapping mapping, HttpServletRequest request) {
064: }
065:
066: public ActionErrors validate(ActionMapping mapping,
067: HttpServletRequest request) {
068: ActionErrors oErrors = new ActionErrors();
069: return oErrors;
070: }
071:
072: // --------------------------------------------------------- Properties Methods
073:
074: public String getDescription() {
075: return description;
076: }
077:
078: public void setDescription(String description) {
079: this .description = description;
080: }
081:
082: public String getName() {
083: return name;
084: }
085:
086: public void setName(String name) {
087: this .name = name;
088: }
089:
090: public ArrayList getListProperties() {
091: return listProperties;
092: }
093:
094: public void setListProperties(List properties) {
095: this .listProperties.clear();
096: RequiredConfigPropertyDesc rcProp = null;
097: // Get the req properties
098: for (Iterator r = properties.iterator(); r.hasNext();) {
099: rcProp = (RequiredConfigPropertyDesc) r.next();
100: String reqName = rcProp.getConfigPropertyName();
101: this .listProperties.add(reqName);
102: }
103: }
104:
105: public void setOName(ObjectName oName) {
106: this .oName = oName;
107: }
108:
109: public ObjectName getOName() {
110: return oName;
111: }
112:
113: public ArrayList getListUsedByMdb() {
114: return listUsedByMdb;
115: }
116:
117: public void setListUsedByMdb(ArrayList listUsedByMdb) {
118: this.listUsedByMdb = listUsedByMdb;
119: }
120:
121: }
|