1 26 27 package org.objectweb.jonas.webapp.jonasadmin.security; 28 29 import java.io.IOException ; 30 import java.util.ArrayList ; 31 32 import javax.servlet.ServletException ; 33 import javax.servlet.http.HttpServletRequest ; 34 import javax.servlet.http.HttpServletResponse ; 35 36 import org.apache.struts.action.ActionForm; 37 import org.apache.struts.action.ActionForward; 38 import org.apache.struts.action.ActionMapping; 39 import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx; 40 41 44 45 public class EditMemoryRealmGroupsAction extends BaseMemoryRealmAction { 46 47 49 51 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 52 , HttpServletRequest p_Request, HttpServletResponse p_Response) 53 throws IOException , ServletException { 54 55 MemoryRealmForm oForm = getForm(p_Mapping, p_Request); 57 removeItemsMemoryRealmForm("group"); 59 60 try { 62 ArrayList al = JonasAdminJmx.getGroups(oForm.getResource()); 63 p_Request.setAttribute("listGroups", al); 64 } 65 catch (Throwable t) { 66 addGlobalError(t); 67 saveErrors(p_Request, m_Errors); 68 return (p_Mapping.findForward("Global Error")); 69 } 70 return (p_Mapping.findForward("Memory Realm Groups")); 72 } 73 74 76 } 77 | Popular Tags |