Changeset 871 for vanHelsing/trunk/gui/src/de/dass_it
- Timestamp:
- May 10, 2010, 7:42:51 PM (15 years ago)
- Location:
- vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/BeanUtil.java
r868 r871 191 191 ArrayList<String> properties = PropertyBundle.getTypeAttributes("director."+key); 192 192 193 System.err.println(properties.size());194 193 ViewItem vi; 195 194 for (String s : properties){ … … 200 199 vi.setRenderer(BeanUtil.getRenderer(key, s)); 201 200 vi.setKeyValue(BeanUtil.getFieldProperty(key, s, 3)); 201 if (vi.getKeyValue().equals("0")){ 202 vi.setKeyValue(""); 203 } 202 204 if (vi.getRequired()){ 203 205 newRes.add(vi); -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/Client.java
r868 r871 1 1 package de.dass_it.vanhelsing.gui; 2 2 3 import java.util.ArrayList; 3 4 import java.util.Iterator; 4 5 5 6 import de.dass_it.www.vanhelsing.*; 6 import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;7 //import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*; 7 8 import de.dass_it.www.vanhelsing.VanHelsingStub.*; 9 8 10 /** 9 11 * Client wraps access methods and data structure of the axis client … … 164 166 } 165 167 /** 168 * Helper method to create a ResourceAttributeType[] out auf an ArrayList of type ViewItem 169 * @param array ArrayList<ViewItem> containing all key value pairs 170 * @return the created ResourceAttributeType array 171 */ 172 public ResourceAttributeType[] makeResAttrTypeArray(ArrayList<ViewItem> array){ 173 array.trimToSize(); 174 int i = 0; 175 ResourceAttributeType[] rat = new ResourceAttributeType[array.size()]; 176 for (ViewItem vi : array){ 177 rat[i] = new ResourceAttributeType(); 178 rat[i].setKey(vi.getKey()); 179 rat[i].setValue(vi.getKeyValue()); 180 i++; 181 } 182 return rat; 183 } 184 /** 166 185 * Helper method to create a ResourceAttributeType[] object out of an array of arrays of strings 167 186 * @param array contains the key-value-pairs which will be stored in the ResourceAttributeType[] -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java
r868 r871 18 18 * List all Bacula configuration components by name. 19 19 */ 20 public class ConfigurationBean implements ViewBean{20 public class ConfigurationBean implements IViewBean{ 21 21 22 22 … … 63 63 dataTree.createKeyValueLists(); 64 64 dataTree.updateUserObjects(); 65 createResource = false; 66 selectedObject = null; 65 67 } 66 68 … … 84 86 selectedObject = (ConcreteUserObjectItem)((UserObjectItemType)(node.getUserObject())).getUserObject(); 85 87 } 86 } 87 /*public void userObjectItemNodeSelected(ActionEvent ae) { 88 DefaultMutableTreeNode node; 89 UserObjectItem userObject; 90 selectedObject.setViewItemList(viewItemList) = new ArrayList<ViewItem>(); 91 String Id = BeanUtil.getRequestParameter("userObject.resId"); 92 String name = BeanUtil.getRequestParameter("userObject.resName"); 93 String selected = BeanUtil.getRequestParameter("ice.event.shift"); 94 node = getNode(Id, tree); 95 if (selected.equals("true")){ 96 ((UserObjectItemType)node.getUserObject()).switchSelected(); 97 } 98 String type = ((UserObjectItem) ((UserObjectItemType) node 99 .getUserObject()).getUserObject()).getResType(); 100 String resName = ((ItemType)((UserObjectItem) ((UserObjectItemType) node 101 .getUserObject()).getUserObject())).getResName(); 102 String director = ((ItemType)((UserObjectItem) ((UserObjectItemType) node 103 .getUserObject()).getUserObject())).getDirector(); 104 String classType = "de.dass_it.vanhelsing.gui.items." + type + "Item"; 105 String accessType = BeanUtil.getAccessType(type.toLowerCase()); 106 try { 107 UserObjectItem item = ((UserObjectItemType) (node.getUserObject())) 108 .getUserObject(); 109 Class c = ((UserObjectItemType) (node.getUserObject())) 110 .getUserObject().getClass(); 111 Method[] m = c.getDeclaredMethods(); 112 String keyValue; 113 String key; 114 ViewItem vi; 115 for (Method n : m) { 116 if (n.getName().startsWith("get")) { 117 keyValue = (String) n.invoke(item, (Object[]) null); 118 if (keyValue == null) 119 continue; 120 key = n.getName().substring(3); 121 vi = new ViewItem(); 122 vi.setResId(new Integer(Id)); 123 vi.setKey(key); 124 vi.setKeyValue(keyValue); 125 vi.setResType(type); 126 vi.setResName(resName); 127 vi.setDirector(director); 128 vi.setRendererFlag(BeanUtil.getRenderer(accessType, key)); 129 vi.setRequired(BeanUtil.getRequired(accessType, key)); 130 if (vi.getSelectOneMenu() != null){ 131 DefaultMutableTreeNode[] dmtn = getChildNodes(tree, vi.getKey()); 132 if (dmtn != null) { 133 SelectItem[] si = new SelectItem[dmtn.length]; 134 String objectType; 135 for (int i = 0; i < dmtn.length; i++){ 136 UserObjectItem nodeObject = ((UserObjectItemType)dmtn[i].getUserObject()).getUserObject(); 137 objectType = "de.dass_it.vanhelsing.gui.items." + vi.getKey() +"Item"; 138 Class subClass = Class.forName(objectType); 139 Class myClass = nodeObject.getClass().asSubclass(subClass); 140 Method o = myClass.getMethod("getName", (Class[])null); 141 si[i] = new SelectItem((String)o.invoke(nodeObject, (Object[])null), 142 (String)o.invoke(nodeObject, (Object[])null)); 143 144 } 145 vi.setKeyValueList(si); 146 } 147 } 148 selectedObject.add(vi); 149 } 150 selectedObject.trimToSize(); 151 } 152 } catch (Exception e) { 153 e.printStackTrace(); 154 } 155 }*/ 156 /** 157 * return an array of nodes of a given resource type 158 * 159 * @param tree2 copy of the data tree 160 * @param key name of the requested resource type 161 * @return dmtn array of nodes of a given resource type 162 * @return null null object there are no nodes of the requested type 163 */ 164 /*private DefaultMutableTreeNode[] getChildNodes(DefaultTreeModel tree2, String key) { 165 DefaultMutableTreeNode[] dmtn; 166 DefaultMutableTreeNode root = (DefaultMutableTreeNode)tree2.getRoot(); 167 DefaultMutableTreeNode node; 168 for (int i = 0; i< root.getChildCount(); i++){ 169 node = (DefaultMutableTreeNode)root.getChildAt(i); 170 if (((UserObjectItemType)(node.getUserObject())).getUserObject().getResType().equals(key)){ 171 dmtn = new DefaultMutableTreeNode[node.getChildCount()]; 172 for (int j = 0; j < node.getChildCount(); j++){ 173 dmtn[j] = (DefaultMutableTreeNode)node.getChildAt(j); 174 } 175 return dmtn; 176 } 177 } 178 return null; 179 }*/ 180 181 /** 182 * 88 createResource = false; 89 } 90 91 /** 92 * reads the properties of a given resource to create a resource object 183 93 * @param ae 184 94 */ 185 /*public void newClientButtonListener(ActionEvent ae){ 186 String type = "client"; 187 ArrayList newResource = new ArrayList<ViewItem>(); 188 ResourceInfo[] ri; 189 int i; 190 String s; 191 selectedObject = BeanUtil.getTypeProperties(type); 192 for (ViewItem vi : selectedObject){ 193 vi.setRendererFlag(vi.getRenderer()); 194 if (vi.getRenderer().equals("selectOneMenu")){ 195 SelectItem[] keyValueList; 196 //TODO: implement getter for list of node types 197 Client c = new Client(); 198 s = vi.getKey().replaceFirst(new Character(vi.getKey().charAt(0)).toString(), 199 new Character(Character.toUpperCase(vi.getKey().charAt(0))).toString()); 200 201 ri = c.getListResources("bacula-dir", s); 202 if (ri != null){ 203 keyValueList = new SelectItem[ri.length]; 204 i = 0; 205 for (ResourceInfo rinfo : ri){ 206 keyValueList[i] = new SelectItem(); 207 keyValueList[i].setValue(rinfo.getResName()); 208 keyValueList[i].setLabel(rinfo.getResName()); 209 i++; 210 } 211 vi.setKeyValueList(keyValueList); 212 } 213 214 } 215 createResource = true; 216 } 217 218 219 }*/ 220 221 /*public void newResourceButtonListener(ActionEvent ae){ 222 DefaultMutableTreeNode node; 223 UserObjectItem userObject; 224 String Id = BeanUtil.getRequestParameter("userObject.ResId"); 225 String value = BeanUtil.getRequestParameter("userObject.resName"); 226 String shift = BeanUtil.getRequestParameter("ice.event.shift"); 227 selectedObject = new ArrayList<ViewItem>(); 228 System.out.println("value: "+value+" id: "+Id); 229 230 if (value.equals("")){ 231 return; 232 } 233 //node = getNode(Id, tree); 234 node = getNodeByName(value, tree); 235 String type = ((UserObjectItem) ((UserObjectItemType) node 236 .getUserObject()).getUserObject()).getResType(); 237 ViewItem vi; 238 String[] val; 239 try{ 240 //value contains the header of the subtree 241 String type2 = "de.dass_it.vanhelsing.gui.items." + value + "Item"; 242 Class newClass = Class.forName(type2); 243 for (Method m : newClass.getDeclaredMethods()){ 244 if (m.getName().startsWith("get")) { 245 vi = new ViewItem(); 246 vi.setKey(m.getName().substring(3)); 247 vi.setRendererFlag(BeanUtil.getRenderer(type, vi.getKey())); 248 if (vi.getSelectOneMenu() != null){ 249 DefaultMutableTreeNode[] dmtn = getChildNodes(tree, vi.getKey()); 250 if (dmtn != null) { 251 SelectItem[] si = new SelectItem[dmtn.length]; 252 String objectType; 253 for (int i = 0; i < dmtn.length; i++){ 254 UserObjectItem nodeObject = ((UserObjectItemType)dmtn[i].getUserObject()).getUserObject(); 255 objectType = "de.dass_it.vanhelsing.gui.items." + vi.getKey() +"Item"; 256 Class subClass = Class.forName(objectType); 257 Class myClass = nodeObject.getClass().asSubclass(subClass); 258 Method o = myClass.getMethod("getName", (Class[])null); 259 si[i] = new SelectItem((String)o.invoke(nodeObject, (Object[])null), 260 (String)o.invoke(nodeObject, (Object[])null)); 261 262 } 263 vi.setKeyValueList(si); 264 } 265 } 266 if (vi.getInputText() != null){ 267 vi.setValue(BeanUtil.getProperty("director."+type+"."+vi.getKey()+".def")); 268 } 269 } 270 } 271 } catch (Exception e){ 272 e.printStackTrace(); 273 } 274 275 }*/ 276 /** 277 * **EXPERIMENTAL** returns type of the selected resource. 278 * The method is used for an evaluation about dynamic navigation. 279 * @param ae ActionEvent contains relevant information about the jsf component tree. 280 * @return viewName name of the resource type of the selected data tree node 281 */ 282 /*public String newResourceListener(ActionEvent ae){ 283 if (selectedObject != null && selectedObject.size() > 0){ 284 String resType = selectedObject.get(0).getResType(); 285 String viewName = BeanUtil.getAccessType(resType); 286 return viewName; 287 } 288 return ""; 289 }*/ 290 95 public void newResourceButtonListener(ActionEvent ae){ 96 String type = "Client"; 97 UserObjectItemFactory UOFactory = new UserObjectItemFactory(); 98 selectedObject = (ConcreteUserObjectItem)UOFactory.createUserObjectItem(type); 99 for (ViewItem vi : selectedObject.getViewItemList()){ 100 if(vi.getSelectOneMenu()){ 101 vi.setKeyValueList(dataTree.getKeyValueList().get(vi.getKey())); 102 } 103 if (vi.getRadioGroup()){ 104 vi.setKeyValueList(dataTree.getKeyValueList().get("trueFalse")); 105 } 106 } 107 createResource = true; 108 } 109 110 public void newClientButtonListener(ActionEvent ae){ 111 newResourceButtonListener(ae); 112 } 291 113 public void userObjectItemOptionSelected(ValueChangeEvent vce){ 114 System.err.println("vce.oldValue: " +vce.getOldValue()+" vce.newValue: "+vce.getNewValue()); 292 115 293 116 } … … 302 125 BeanUtil.setInfoMessage(null, "Diese Methode ist noch nicht implementiert."); 303 126 } 304 /*public void saveClientButtonListener(ActionEvent ae){ 305 Client c = new Client(); 306 String name = ""; 307 ResourceAttributeType[] rat = new ResourceAttributeType[selectedObject.size()]; 308 int i =0; 309 for (ViewItem vi : selectedObject){ 310 rat[i] = new ResourceAttributeType(); 311 rat[i].setKey(vi.getKey()); 312 rat[i].setValue(vi.getKeyValue()); 313 i++; 314 if (vi.getKey().equals("name")){ 315 name = vi.getKeyValue(); 316 } 317 318 } 319 int newResId = c.createSimpleResource(rat, 320 c.makeResourceInfo("bacula-dir", 0, name, "Client") 321 ); 322 System.err.println(newResId); 323 }*/ 324 /** 325 * **EXPERIMENTAL** writes the selected resource to the data tree of the web service. 326 * 327 * @param ae ActionEvent contains relevant information 328 */ 329 /*public void saveButtonListener(ActionEvent ae) { 330 if (selectedObject == null){ 331 BeanUtil.setInfoMessage(null, "bitte eine Resource zum Ändern auswählen"); 332 } else { 127 /** 128 * save the currently selected object 129 * @param ae 130 */ 131 public void saveClientButtonListener(ActionEvent ae){ 132 if (createResource){ 333 133 Client c = new Client(); 334 ResourceInfo ri = new ResourceInfo(); 335 SetSimpleResourceResponse s2r2; 336 ri.setDirector( selectedObject.get(0).getDirector() ); 337 ri.setResId( selectedObject.get(0).getResId() ); 338 ri.setResName( selectedObject.get(0).getResName() ); 339 ri.setResType( selectedObject.get(0).getResType() ); 340 // ResourceAttribute 341 String key, value; 342 ResourceAttributeType[] ra = new ResourceAttributeType[selectedObject.size()]; 343 for (int i = 0; i < selectedObject.size(); i++) { 344 key = selectedObject.get(i).getKey(); 345 value = selectedObject.get(i).getKeyValue(); 346 ra[i] = new ResourceAttributeType(); 347 ra[i].setKey(key); 348 ra[i].setValue(value); 349 } 350 ResourceInitialization rinit = new ResourceInitialization(); 351 rinit.setResInfo(ri); 352 rinit.setResAttribute(ra); 353 rinit.setReplace(true); 354 s2r2 = c.setSimpleResource(rinit); 355 System.err.println("Status setSimpleRes: "+s2r2.getStatus()); 356 BeanUtil.setErrorMessage(null, "Status setSimpleRessource: "+s2r2.getStatus()); 357 358 /*String status = s2r2.getStatus(); 359 if (selectedObject.get(0) != null){ 360 selectedObject.get(0).setResId(s2r2.getResId()); 361 } 362 // TODO: write ResId to selectedObject 363 // selectedObject.get(0).setResId(grt.getResId()); 364 // valueChangeEffect.setFired(false); 365 } 366 }*/ 134 SimpleResource sr; 135 UserObjectItemFactory UOFactory = new UserObjectItemFactory(); 136 for (ViewItem vi : selectedObject.getViewItemList()){ 137 if(vi.getKey().equals("name")){ 138 selectedObject.setResName(vi.getKeyValue()); 139 } 140 } 141 int newResId = 142 c.createSimpleResource(c.makeResAttrTypeArray(selectedObject.getViewItemList()), 143 c.makeResourceInfo(selectedObject.getDirector(), selectedObject.getResId(), 144 selectedObject.getResName(), selectedObject.getResType())); 145 BeanUtil.setInfoMessage(null, "Neue Resource erzeugt (Id: "+newResId+")"); 146 //neue Resource einlesen und in den Baum eintragen 147 //sr = c.getSimpleResource(selectedObject.getDirector(), newResId); 148 sr = new SimpleResource(); 149 sr.setResourceAttributeType(c.makeResAttrTypeArray(selectedObject.getViewItemList())); 150 sr.setResourceInfo(c.makeResourceInfo(selectedObject.getDirector(), selectedObject.getResId(), 151 selectedObject.getResName(), selectedObject.getResType())); 152 dataTree.createNode(dataTree.getNodeByName("Client"), 153 UOFactory.createUserObjectItem(sr.getResourceAttributeType(), 154 sr.getResourceInfo())); 155 dataTree.updateUserObjects(); 156 } 157 } 158 367 159 /** 368 160 * Setter method for the tree attribute -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/DataTree.java
r868 r871 113 113 return node; 114 114 } 115 115 /** 116 * creates all key-Value-lists by traversing the data tree object 117 */ 116 118 public void createKeyValueLists(){ 117 119 DefaultMutableTreeNode parent; … … 120 122 SelectItem[] selItems; 121 123 String key; 124 keyValueList = new HashMap<String, SelectItem[]>(); 122 125 parent = (DefaultMutableTreeNode)tree.getRoot(); 126 127 //create true false selectItem array for use with radio groups 128 selItems = new SelectItem[2]; 129 selItems[0] = new SelectItem("true", "true"); 130 selItems[1] = new SelectItem("false", "false"); 131 keyValueList.put("trueFalse", selItems); 132 123 133 for (int i = 0; i < parent.getChildCount(); i++){ 124 134 node = (DefaultMutableTreeNode)parent.getChildAt(i); 125 135 selItems = new SelectItem[node.getChildCount()]; 126 136 for (int j = 0; j < node.getChildCount(); j++){ 127 userObject = (ConcreteUserObjectItem)(( DefaultMutableTreeNode)node.getChildAt(j)).getUserObject();137 userObject = (ConcreteUserObjectItem)((UserObjectItemType)((DefaultMutableTreeNode)node.getChildAt(j)).getUserObject()).getUserObject(); 128 138 selItems[j] = new SelectItem(userObject.getResName(), userObject.getResName()); 129 139 } 130 key = ((ConcreteUserObjectItem)((DefaultMutableTreeNode)node.getChildAt(i)).getUserObject()).getResType(); 131 keyValueList.put(key, selItems); 140 if (selItems.length > 0){ 141 key = ((ConcreteUserObjectItem)((UserObjectItemType)node.getUserObject()).getUserObject()).getResName(); 142 keyValueList.put(key.toLowerCase(), selItems); 143 } 132 144 } 133 145 } … … 147 159 this.tree = tree; 148 160 } 161 162 public void setKeyValueList(HashMap<String, SelectItem[]> keyValueList){ 163 this.keyValueList = keyValueList; 164 } 165 public HashMap<String, SelectItem[]> getKeyValueList(){ 166 return keyValueList; 167 } 168 149 169 public void updateUserObjects(){ 170 150 171 DefaultMutableTreeNode parent; 151 172 DefaultMutableTreeNode node; 152 173 parent = (DefaultMutableTreeNode)tree.getRoot(); 153 174 ArrayList<ViewItem> viList; 175 154 176 for(int i = 0; i < parent.getChildCount(); i++){ 155 177 node = (DefaultMutableTreeNode)parent.getChildAt(i); 156 178 for (int j = 0; j < node.getChildCount(); j++){ 157 viList = ((ConcreteUserObjectItem)((UserObjectItemType)node.getUserObject()).getUserObject()).getViewItemList(); 158 for (ViewItem vi : viList){ 159 if (vi.getRenderer().equals("selectOneMenu")){ 160 vi.setKeyValueList(keyValueList.get(vi.getResType())); 179 viList = ((ConcreteUserObjectItem)((UserObjectItemType)((DefaultMutableTreeNode)node.getChildAt(j)) 180 .getUserObject()).getUserObject()).getViewItemList(); 181 if (viList != null) { 182 for (ViewItem vi : viList){ 183 if (vi.getSelectOneMenu()){ 184 vi.setKeyValueList(keyValueList.get(vi.getKey().toLowerCase())); 185 } 186 if (vi.getRadioGroup()){ 187 vi.setKeyValueList(keyValueList.get("trueFalse")); 188 System.err.println("Key: " + vi.getKey() +" "); 189 } 161 190 } 162 191 } … … 164 193 } 165 194 } 166 167 195 168 196 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/IViewBean.java
r868 r871 3 3 import javax.faces.event.ActionEvent; 4 4 5 public interface ViewBean {5 public interface IViewBean { 6 6 public DataTree getDataTree(); 7 7 public void setDataTree(DataTree dataTree); -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/JobScheduleBean.java
r868 r871 12 12 * with a given schedule. 13 13 */ 14 public class JobScheduleBean implements ViewBean {14 public class JobScheduleBean implements IViewBean { 15 15 private DataTree dataTree; 16 16 private ConcreteUserObjectItem selectedObject; -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/UserObjectItemFactory.java
r868 r871 49 49 s = BeanUtil.getRenderer(BeanUtil.getAccessType(obj.getResType().toLowerCase()), attr.getKey()); 50 50 if (s == null){ 51 s = "inputT ype";51 s = "inputText"; 52 52 } 53 vi.setRenderer Flag(s);53 vi.setRenderer(s); 54 54 55 55 b = false; … … 64 64 return obj; 65 65 } 66 /** 67 * create an empty object of a given type 68 * @param type type of resource to be created 69 * @return newResource new resource object to be edited by the user 70 */ 71 public UserObjectItem createUserObjectItem(String type){ 72 ConcreteUserObjectItem newResource = new ConcreteUserObjectItem(); 73 newResource.setResType(type); 74 newResource.setDirector(BeanUtil.getProperty("defaultdirector")); 75 newResource.setViewItemList(BeanUtil.getTypeProperties(type.toLowerCase())); 76 return newResource; 77 } 66 78 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ValidationParser.java
r865 r871 175 175 */ 176 176 private enum conf2type{ 177 STOREPOOL ("store_ pool", "boolean"),177 STOREPOOL ("store_bool", "boolean"), 178 178 STOREBIT ("store_bit","boolean"), 179 179 STORE_STR ("store_str","String"), -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ViewItem.java
r865 r871 18 18 private SelectItem[] keyValueList; 19 19 20 private StringinputText;21 private StringselectOneMenu;22 private StringradioGroup;20 private boolean inputText; 21 private boolean selectOneMenu; 22 private boolean radioGroup; 23 23 public ViewItem(){ 24 inputText = null;25 selectOneMenu = null;26 radioGroup = null;24 inputText = false; 25 selectOneMenu = false; 26 radioGroup = false; 27 27 } 28 28 … … 37 37 public String getRenderer() { 38 38 return renderer; 39 }40 41 public void setRenderer(String renderer) {42 this.renderer = renderer;43 39 } 44 40 … … 81 77 } 82 78 83 public void setInputText( StringinputText) {79 public void setInputText(boolean inputText) { 84 80 this.inputText = inputText; 85 81 } 86 82 87 public StringgetInputText() {83 public boolean getInputText() { 88 84 return inputText; 89 85 } 90 86 91 public void setSelectOneMenu( StringselectOneMenu) {87 public void setSelectOneMenu(boolean selectOneMenu) { 92 88 this.selectOneMenu = selectOneMenu; 93 89 } 94 90 95 public StringgetSelectOneMenu() {91 public boolean getSelectOneMenu() { 96 92 return selectOneMenu; 93 } 94 public boolean getRadioGroup(){ 95 return radioGroup; 96 } 97 public void setRadioGroup(boolean radioGroup){ 98 this.radioGroup = radioGroup; 97 99 } 98 100 /** … … 100 102 * @param r valid inputs are inputText, selectOneMenu and radioGroup 101 103 */ 102 public void setRenderer Flag(String r){104 public void setRenderer(String r){ 103 105 if (r.equals("inputText")) { 104 this.inputText = new String("bernd");106 this.inputText = true; 105 107 } 106 108 if (r.equals("selectOneMenu")){ 107 this.selectOneMenu = new String("bernd"); //null;109 this.selectOneMenu = true; //null; 108 110 } 109 111 if (r.equals("radioGroup")){ 110 this.radioGroup = new String("bernd");112 this.radioGroup = true; 111 113 } 114 this.renderer = r; 112 115 } 113 116 /** -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/messages_en.properties
r868 r871 78 78 director.director.heartbeatinterval.def = 0 79 79 director.director.tlsauthenticate.ref = 0 80 director.director.tlsauthenticate.type = store_bool80 director.director.tlsauthenticate.type = boolean 81 81 director.director.tlsauthenticate.required = false 82 82 director.director.tlsauthenticate.def = 0 83 83 director.director.tlsenable.ref = 0 84 director.director.tlsenable.type = store_bool84 director.director.tlsenable.type = boolean 85 85 director.director.tlsenable.required = false 86 86 director.director.tlsenable.def = 0 87 87 director.director.tlsrequire.ref = 0 88 director.director.tlsrequire.type = store_bool88 director.director.tlsrequire.type = boolean 89 89 director.director.tlsrequire.required = false 90 90 director.director.tlsrequire.def = 0 91 91 director.director.tlsverifypeer.ref = 0 92 director.director.tlsverifypeer.type = store_bool92 director.director.tlsverifypeer.type = boolean 93 93 director.director.tlsverifypeer.required = false 94 94 director.director.tlsverifypeer.def = true … … 182 182 director.console.pluginoptionsacl.def = 0 183 183 director.console.tlsauthenticate.ref = 0 184 director.console.tlsauthenticate.type = store_bool184 director.console.tlsauthenticate.type = boolean 185 185 director.console.tlsauthenticate.required = false 186 186 director.console.tlsauthenticate.def = 0 187 187 director.console.tlsenable.ref = 0 188 director.console.tlsenable.type = store_bool188 director.console.tlsenable.type = boolean 189 189 director.console.tlsenable.required = false 190 190 director.console.tlsenable.def = 0 191 191 director.console.tlsrequire.ref = 0 192 director.console.tlsrequire.type = store_bool192 director.console.tlsrequire.type = boolean 193 193 director.console.tlsrequire.required = false 194 194 director.console.tlsrequire.def = 0 195 195 director.console.tlsverifypeer.ref = 0 196 director.console.tlsverifypeer.type = store_bool196 director.console.tlsverifypeer.type = boolean 197 197 director.console.tlsverifypeer.required = false 198 198 director.console.tlsverifypeer.def = true … … 266 266 director.client.heartbeatinterval.def = 0 267 267 director.client.autoprune.ref = 0 268 director.client.autoprune.type = store_bool268 director.client.autoprune.type = boolean 269 269 director.client.autoprune.required = false 270 270 director.client.autoprune.def = true … … 274 274 director.client.maximumconcurrentjobs.def = 1 275 275 director.client.tlsauthenticate.ref = 0 276 director.client.tlsauthenticate.type = store_bool276 director.client.tlsauthenticate.type = boolean 277 277 director.client.tlsauthenticate.required = false 278 278 director.client.tlsauthenticate.def = 0 279 279 director.client.tlsenable.ref = 0 280 director.client.tlsenable.type = store_bool280 director.client.tlsenable.type = boolean 281 281 director.client.tlsenable.required = false 282 282 director.client.tlsenable.def = 0 283 283 director.client.tlsrequire.ref = 0 284 director.client.tlsrequire.type = store_bool284 director.client.tlsrequire.type = boolean 285 285 director.client.tlsrequire.required = false 286 286 director.client.tlsrequire.def = 0 … … 342 342 director.storage.mediatype.def = 0 343 343 director.storage.autochanger.ref = 0 344 director.storage.autochanger.type = store_bool344 director.storage.autochanger.type = boolean 345 345 director.storage.autochanger.required = false 346 346 director.storage.autochanger.def = 0 347 347 director.storage.enabled.ref = 0 348 director.storage.enabled.type = store_bool348 director.storage.enabled.type = boolean 349 349 director.storage.enabled.required = false 350 350 director.storage.enabled.def = true 351 351 director.storage.allowcompression.ref = 0 352 director.storage.allowcompression.type = store_bool352 director.storage.allowcompression.type = boolean 353 353 director.storage.allowcompression.required = false 354 354 director.storage.allowcompression.def = true … … 362 362 director.storage.maximumconcurrentjobs.def = 1 363 363 director.storage.tlsauthenticate.ref = 0 364 director.storage.tlsauthenticate.type = store_bool364 director.storage.tlsauthenticate.type = boolean 365 365 director.storage.tlsauthenticate.required = false 366 366 director.storage.tlsauthenticate.def = 0 367 367 director.storage.tlsenable.ref = 0 368 director.storage.tlsenable.type = store_bool368 director.storage.tlsenable.type = boolean 369 369 director.storage.tlsenable.required = false 370 370 director.storage.tlsenable.def = 0 371 371 director.storage.tlsrequire.ref = 0 372 director.storage.tlsrequire.type = store_bool372 director.storage.tlsrequire.type = boolean 373 373 director.storage.tlsrequire.required = false 374 374 director.storage.tlsrequire.def = 0 … … 594 594 director.job.maxdiffinterval.def = 0 595 595 director.job.prefixlinks.ref = 0 596 director.job.prefixlinks.type = store_bool596 director.job.prefixlinks.type = boolean 597 597 director.job.prefixlinks.required = false 598 598 director.job.prefixlinks.def = false 599 599 director.job.prunejobs.ref = 0 600 director.job.prunejobs.type = store_bool600 director.job.prunejobs.type = boolean 601 601 director.job.prunejobs.required = false 602 602 director.job.prunejobs.def = false 603 603 director.job.prunefiles.ref = 0 604 director.job.prunefiles.type = store_bool604 director.job.prunefiles.type = boolean 605 605 director.job.prunefiles.required = false 606 606 director.job.prunefiles.def = false 607 607 director.job.prunevolumes.ref = 0 608 director.job.prunevolumes.type = store_bool608 director.job.prunevolumes.type = boolean 609 609 director.job.prunevolumes.required = false 610 610 director.job.prunevolumes.def = false 611 611 director.job.enabled.ref = 0 612 director.job.enabled.type = store_bool612 director.job.enabled.type = boolean 613 613 director.job.enabled.required = false 614 614 director.job.enabled.def = true 615 615 director.job.spoolattributes.ref = 0 616 director.job.spoolattributes.type = store_bool616 director.job.spoolattributes.type = boolean 617 617 director.job.spoolattributes.required = false 618 618 director.job.spoolattributes.def = false 619 619 director.job.spooldata.ref = 0 620 director.job.spooldata.type = store_bool620 director.job.spooldata.type = boolean 621 621 director.job.spooldata.required = false 622 622 director.job.spooldata.def = false … … 626 626 director.job.spoolsize.def = 0 627 627 director.job.rerunfailedlevels.ref = 0 628 director.job.rerunfailedlevels.type = store_bool628 director.job.rerunfailedlevels.type = boolean 629 629 director.job.rerunfailedlevels.required = false 630 630 director.job.rerunfailedlevels.def = false 631 631 director.job.prefermountedvolumes.ref = 0 632 director.job.prefermountedvolumes.type = store_bool632 director.job.prefermountedvolumes.type = boolean 633 633 director.job.prefermountedvolumes.required = false 634 634 director.job.prefermountedvolumes.def = true … … 658 658 director.job.maximumconcurrentjobs.def = 1 659 659 director.job.rescheduleonerror.ref = 0 660 director.job.rescheduleonerror.type = store_bool660 director.job.rescheduleonerror.type = boolean 661 661 director.job.rescheduleonerror.required = false 662 662 director.job.rescheduleonerror.def = false … … 674 674 director.job.priority.def = 10 675 675 director.job.allowmixedpriority.ref = 0 676 director.job.allowmixedpriority.type = store_bool676 director.job.allowmixedpriority.type = boolean 677 677 director.job.allowmixedpriority.required = false 678 678 director.job.allowmixedpriority.def = false 679 679 director.job.writepartafterjob.ref = 0 680 director.job.writepartafterjob.type = store_bool680 director.job.writepartafterjob.type = boolean 681 681 director.job.writepartafterjob.required = false 682 682 director.job.writepartafterjob.def = true … … 694 694 director.job.selectiontype.def = 0 695 695 director.job.accurate.ref = 0 696 director.job.accurate.type = store_bool696 director.job.accurate.type = boolean 697 697 director.job.accurate.required = false 698 698 director.job.accurate.def = 0 699 699 director.job.allowduplicatejobs.ref = 0 700 director.job.allowduplicatejobs.type = store_bool700 director.job.allowduplicatejobs.type = boolean 701 701 director.job.allowduplicatejobs.required = false 702 702 director.job.allowduplicatejobs.def = true 703 703 director.job.allowhigherduplicates.ref = 0 704 director.job.allowhigherduplicates.type = store_bool704 director.job.allowhigherduplicates.type = boolean 705 705 director.job.allowhigherduplicates.required = false 706 706 director.job.allowhigherduplicates.def = true 707 707 director.job.cancellowerlevelduplicates.ref = 0 708 director.job.cancellowerlevelduplicates.type = store_bool708 director.job.cancellowerlevelduplicates.type = boolean 709 709 director.job.cancellowerlevelduplicates.required = false 710 710 director.job.cancellowerlevelduplicates.def = false 711 711 director.job.cancelqueuedduplicates.ref = 0 712 director.job.cancelqueuedduplicates.type = store_bool712 director.job.cancelqueuedduplicates.type = boolean 713 713 director.job.cancelqueuedduplicates.required = false 714 714 director.job.cancelqueuedduplicates.def = false 715 715 director.job.cancelrunningduplicates.ref = 0 716 director.job.cancelrunningduplicates.type = store_bool716 director.job.cancelrunningduplicates.type = boolean 717 717 director.job.cancelrunningduplicates.required = false 718 718 director.job.cancelrunningduplicates.def = false … … 742 742 director.fileset.exclude.def = 0 743 743 director.fileset.ignorefilesetchanges.ref = 0 744 director.fileset.ignorefilesetchanges.type = store_bool744 director.fileset.ignorefilesetchanges.type = boolean 745 745 director.fileset.ignorefilesetchanges.required = false 746 746 director.fileset.ignorefilesetchanges.def = false 747 747 director.fileset.enablevss.ref = 0 748 director.fileset.enablevss.type = store_bool748 director.fileset.enablevss.type = boolean 749 749 director.fileset.enablevss.required = false 750 750 director.fileset.enablevss.def = true … … 782 782 director.pool.cleaningprefix.def = 0 783 783 director.pool.usecatalog.ref = 0 784 director.pool.usecatalog.type = store_bool784 director.pool.usecatalog.type = boolean 785 785 director.pool.usecatalog.required = false 786 786 director.pool.usecatalog.def = true 787 787 director.pool.usevolumeonce.ref = 0 788 director.pool.usevolumeonce.type = store_bool788 director.pool.usevolumeonce.type = boolean 789 789 director.pool.usevolumeonce.required = false 790 790 director.pool.usevolumeonce.def = 0 791 791 director.pool.purgeoldestvolume.ref = 0 792 director.pool.purgeoldestvolume.type = store_bool792 director.pool.purgeoldestvolume.type = boolean 793 793 director.pool.purgeoldestvolume.required = false 794 794 director.pool.purgeoldestvolume.def = 0 … … 798 798 director.pool.actiononpurge.def = 0 799 799 director.pool.recycleoldestvolume.ref = 0 800 director.pool.recycleoldestvolume.type = store_bool800 director.pool.recycleoldestvolume.type = boolean 801 801 director.pool.recycleoldestvolume.required = false 802 802 director.pool.recycleoldestvolume.def = 0 803 803 director.pool.recyclecurrentvolume.ref = 0 804 director.pool.recyclecurrentvolume.type = store_bool804 director.pool.recyclecurrentvolume.type = boolean 805 805 director.pool.recyclecurrentvolume.required = false 806 806 director.pool.recyclecurrentvolume.def = 0 … … 822 822 director.pool.maximumvolumebytes.def = 0 823 823 director.pool.catalogfiles.ref = 0 824 director.pool.catalogfiles.type = store_bool824 director.pool.catalogfiles.type = boolean 825 825 director.pool.catalogfiles.required = false 826 826 director.pool.catalogfiles.def = true … … 854 854 director.pool.storage.def = 0 855 855 director.pool.autoprune.ref = 0 856 director.pool.autoprune.type = store_bool856 director.pool.autoprune.type = boolean 857 857 director.pool.autoprune.required = false 858 858 director.pool.autoprune.def = true 859 859 director.pool.recycle.ref = 0 860 director.pool.recycle.type = store_bool860 director.pool.recycle.type = boolean 861 861 director.pool.recycle.required = false 862 862 director.pool.recycle.def = true … … 982 982 storagedaemon.storage.heartbeatinterval.def = 0 983 983 storagedaemon.storage.tlsauthenticate.ref = 0 984 storagedaemon.storage.tlsauthenticate.type = store_bool984 storagedaemon.storage.tlsauthenticate.type = boolean 985 985 storagedaemon.storage.tlsauthenticate.required = false 986 986 storagedaemon.storage.tlsauthenticate.def = 0 987 987 storagedaemon.storage.tlsenable.ref = 0 988 storagedaemon.storage.tlsenable.type = store_bool988 storagedaemon.storage.tlsenable.type = boolean 989 989 storagedaemon.storage.tlsenable.required = false 990 990 storagedaemon.storage.tlsenable.def = 0 991 991 storagedaemon.storage.tlsrequire.ref = 0 992 storagedaemon.storage.tlsrequire.type = store_bool992 storagedaemon.storage.tlsrequire.type = boolean 993 993 storagedaemon.storage.tlsrequire.required = false 994 994 storagedaemon.storage.tlsrequire.def = 0 995 995 storagedaemon.storage.tlsverifypeer.ref = 1 996 storagedaemon.storage.tlsverifypeer.type = store_bool996 storagedaemon.storage.tlsverifypeer.type = boolean 997 997 storagedaemon.storage.tlsverifypeer.required = false 998 998 storagedaemon.storage.tlsverifypeer.def = 1 … … 1042 1042 storagedaemon.director.password.def = 0 1043 1043 storagedaemon.director.monitor.ref = 0 1044 storagedaemon.director.monitor.type = store_bool1044 storagedaemon.director.monitor.type = boolean 1045 1045 storagedaemon.director.monitor.required = false 1046 1046 storagedaemon.director.monitor.def = 0 1047 1047 storagedaemon.director.tlsauthenticate.ref = 0 1048 storagedaemon.director.tlsauthenticate.type = store_bool1048 storagedaemon.director.tlsauthenticate.type = boolean 1049 1049 storagedaemon.director.tlsauthenticate.required = false 1050 1050 storagedaemon.director.tlsauthenticate.def = 0 1051 1051 storagedaemon.director.tlsenable.ref = 0 1052 storagedaemon.director.tlsenable.type = store_bool1052 storagedaemon.director.tlsenable.type = boolean 1053 1053 storagedaemon.director.tlsenable.required = false 1054 1054 storagedaemon.director.tlsenable.def = 0 1055 1055 storagedaemon.director.tlsrequire.ref = 0 1056 storagedaemon.director.tlsrequire.type = store_bool1056 storagedaemon.director.tlsrequire.type = boolean 1057 1057 storagedaemon.director.tlsrequire.required = false 1058 1058 storagedaemon.director.tlsrequire.def = 0 1059 1059 storagedaemon.director.tlsverifypeer.ref = 1 1060 storagedaemon.director.tlsverifypeer.type = store_bool1060 storagedaemon.director.tlsverifypeer.type = boolean 1061 1061 storagedaemon.director.tlsverifypeer.required = false 1062 1062 storagedaemon.director.tlsverifypeer.def = 1 … … 1194 1194 storagedaemon.device.blockchecksum.def = 1 1195 1195 storagedaemon.device.autoselect.ref = 1 1196 storagedaemon.device.autoselect.type = store_bool1196 storagedaemon.device.autoselect.type = boolean 1197 1197 storagedaemon.device.autoselect.required = false 1198 1198 storagedaemon.device.autoselect.def = 1 … … 1386 1386 filedaemon.client.maximumnetworkbuffersize.def = 0 1387 1387 filedaemon.client.pkisignatures.ref = 0 1388 filedaemon.client.pkisignatures.type = store_bool1388 filedaemon.client.pkisignatures.type = boolean 1389 1389 filedaemon.client.pkisignatures.required = false 1390 1390 filedaemon.client.pkisignatures.def = 0 1391 1391 filedaemon.client.pkiencryption.ref = 0 1392 filedaemon.client.pkiencryption.type = store_bool1392 filedaemon.client.pkiencryption.type = boolean 1393 1393 filedaemon.client.pkiencryption.required = false 1394 1394 filedaemon.client.pkiencryption.def = 0 … … 1406 1406 filedaemon.client.pkimasterkey.def = 0 1407 1407 filedaemon.client.tlsauthenticate.ref = 0 1408 filedaemon.client.tlsauthenticate.type = store_bool1408 filedaemon.client.tlsauthenticate.type = boolean 1409 1409 filedaemon.client.tlsauthenticate.required = false 1410 1410 filedaemon.client.tlsauthenticate.def = 0 1411 1411 filedaemon.client.tlsenable.ref = 0 1412 filedaemon.client.tlsenable.type = store_bool1412 filedaemon.client.tlsenable.type = boolean 1413 1413 filedaemon.client.tlsenable.required = false 1414 1414 filedaemon.client.tlsenable.def = 0 1415 1415 filedaemon.client.tlsrequire.ref = 0 1416 filedaemon.client.tlsrequire.type = store_bool1416 filedaemon.client.tlsrequire.type = boolean 1417 1417 filedaemon.client.tlsrequire.required = false 1418 1418 filedaemon.client.tlsrequire.def = 0 … … 1454 1454 filedaemon.director.address.def = 0 1455 1455 filedaemon.director.monitor.ref = 0 1456 filedaemon.director.monitor.type = store_bool1456 filedaemon.director.monitor.type = boolean 1457 1457 filedaemon.director.monitor.required = false 1458 1458 filedaemon.director.monitor.def = 0 1459 1459 filedaemon.director.tlsauthenticate.ref = 0 1460 filedaemon.director.tlsauthenticate.type = store_bool1460 filedaemon.director.tlsauthenticate.type = boolean 1461 1461 filedaemon.director.tlsauthenticate.required = false 1462 1462 filedaemon.director.tlsauthenticate.def = 0 1463 1463 filedaemon.director.tlsenable.ref = 0 1464 filedaemon.director.tlsenable.type = store_bool1464 filedaemon.director.tlsenable.type = boolean 1465 1465 filedaemon.director.tlsenable.required = false 1466 1466 filedaemon.director.tlsenable.def = 0 1467 1467 filedaemon.director.tlsrequire.ref = 0 1468 filedaemon.director.tlsrequire.type = store_bool1468 filedaemon.director.tlsrequire.type = boolean 1469 1469 filedaemon.director.tlsrequire.required = false 1470 1470 filedaemon.director.tlsrequire.def = 0 1471 1471 filedaemon.director.tlsverifypeer.ref = 0 1472 filedaemon.director.tlsverifypeer.type = store_bool1472 filedaemon.director.tlsverifypeer.type = boolean 1473 1473 filedaemon.director.tlsverifypeer.required = false 1474 1474 filedaemon.director.tlsverifypeer.def = 1
Note:
See TracChangeset
for help on using the changeset viewer.