1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.resource; 27 28 import java.net.URL ; 29 import java.util.ArrayList ; 30 import java.util.Collections ; 31 import java.util.Enumeration ; 32 import java.util.Iterator ; 33 import java.util.List ; 34 import java.util.Properties ; 35 36 import javax.management.ObjectName ; 37 38 import javax.servlet.http.HttpServletRequest ; 39 40 import org.apache.struts.action.ActionErrors; 41 import org.apache.struts.action.ActionForm; 42 import org.apache.struts.action.ActionMapping; 43 import org.objectweb.jonas.webapp.jonasadmin.Jlists; 44 import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx; 45 import org.objectweb.jonas_rar.deployment.api.RequiredConfigPropertyDesc; 46 47 48 51 public class ResourceAdapterASForm extends ActionForm { 52 53 55 private String description = null; 56 private String name = null; 57 private ArrayList listProperties = new ArrayList (); 58 private ObjectName oName = null; 59 60 private ArrayList listUsedByMdb = new ArrayList (); 61 62 64 public void reset(ActionMapping mapping, HttpServletRequest request) { 65 } 66 67 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 68 ActionErrors oErrors = new ActionErrors(); 69 return oErrors; 70 } 71 72 74 public String getDescription() { 75 return description; 76 } 77 78 public void setDescription(String description) { 79 this.description = description; 80 } 81 82 public String getName() { 83 return name; 84 } 85 86 public void setName(String name) { 87 this.name = name; 88 } 89 90 public ArrayList getListProperties() { 91 return listProperties; 92 } 93 94 public void setListProperties(List properties) { 95 this.listProperties.clear(); 96 RequiredConfigPropertyDesc rcProp = null; 97 for (Iterator r = properties.iterator(); r.hasNext();) { 99 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 } | Popular Tags |