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.webapp.jonasadmin.common.LabelValueByLabelComparator; 46 import org.objectweb.jonas.webapp.taglib.LabelValueBean; 47 import org.objectweb.jonas_rar.deployment.api.RequiredConfigPropertyDesc; 48 49 50 53 public class ResourceAdapterAOForm extends ActionForm { 54 55 57 private String description = null; 58 private String name = null; 59 private ArrayList listProperties = new ArrayList (); 60 private ObjectName oName = null; 61 62 private ArrayList listUsedByMdb = new ArrayList (); 63 64 66 public void reset(ActionMapping mapping, HttpServletRequest request) { 67 } 68 69 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 70 ActionErrors oErrors = new ActionErrors(); 71 return oErrors; 72 } 73 74 76 public String getDescription() { 77 return description; 78 } 79 80 public void setDescription(String description) { 81 this.description = description; 82 } 83 84 public String getName() { 85 return name; 86 } 87 88 public void setName(String name) { 89 this.name = name; 90 } 91 92 public ArrayList getListProperties() { 93 return listProperties; 94 } 95 96 public void setListProperties(Properties properties) { 97 this.listProperties.clear(); 98 String sKey; 100 Enumeration oEnum = properties.keys(); 101 while (oEnum.hasMoreElements()) { 102 sKey = oEnum.nextElement().toString(); 103 this.listProperties.add(new LabelValueBean(sKey, properties.getProperty(sKey, ""))); 104 } 105 Collections.sort(this.listProperties, new LabelValueByLabelComparator()); 106 } 107 108 109 public void setOName(ObjectName oName) { 110 this.oName = oName; 111 } 112 113 public ObjectName getOName() { 114 return oName; 115 } 116 117 public ArrayList getListUsedByMdb() { 118 return listUsedByMdb; 119 } 120 121 public void setListUsedByMdb(ArrayList listUsedByMdb) { 122 this.listUsedByMdb = listUsedByMdb; 123 } 124 125 } | Popular Tags |