1 26 27 package org.objectweb.jonas.webapp.jonasadmin.security; 28 29 import java.util.ArrayList ; 30 31 import javax.servlet.http.HttpServletRequest ; 32 33 import org.apache.struts.action.ActionErrors; 34 import org.apache.struts.action.ActionForm; 35 import org.apache.struts.action.ActionMapping; 36 37 public class ItemsRealmsForm extends ActionForm { 38 39 41 private String action = null; 43 private String [] selectedItems = new String [0]; 44 private ArrayList selectedRealmItem = new ArrayList (); 45 46 48 54 public void reset(ActionMapping mapping, HttpServletRequest request) { 55 selectedItems = new String [0]; 56 } 57 58 68 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 69 ActionErrors oErrors = new ActionErrors(); 70 return oErrors; 71 } 72 73 public String [] getSelectedItems() { 74 return selectedItems; 75 } 76 77 public void setSelectedItems(String [] selectedItems) { 78 this.selectedItems = selectedItems; 79 } 80 81 public String getAction() { 82 return action; 83 } 84 85 public void setAction(String action) { 86 this.action = action; 87 } 88 89 public ArrayList getSelectedRealmItem() { 90 return selectedRealmItem; 91 } 92 93 public void setSelectedRealmItem(ArrayList selectedRealmItem) { 94 this.selectedRealmItem = selectedRealmItem; 95 } 96 97 99 } | Popular Tags |