org.objectweb.jonas.webapp.jonasadmin.security
Class ListRealmsAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
          extended by org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction
              extended by org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction
                  extended by org.objectweb.jonas.webapp.jonasadmin.security.BaseMemoryRealmAction
                      extended by org.objectweb.jonas.webapp.jonasadmin.security.ListRealmsAction

public class ListRealmsAction
extends BaseMemoryRealmAction

Author:
Michel-Ange ANTON

Field Summary
 
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ListRealmsAction()
           
 
Method Summary
protected  void addRealmItem(java.util.ArrayList p_Realms, java.lang.String p_Type, java.lang.String p_SecurityRealmUsed, java.lang.String serverName)
          Add RealmItem in the list.
 org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, javax.servlet.http.HttpServletRequest p_Request, javax.servlet.http.HttpServletResponse p_Response)
           
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.security.BaseMemoryRealmAction
encryptPassword, getForm, populateGroupForm, populateRoleForm, populateUserForm, removeItemsMemoryRealmForm
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction
refreshSecurityTree, refreshTree
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction
deploy, deployDataSource, deployMailFactory, getCurrentJonasDeployment, getDomainDeploymentMethodName, getDomainUploadDeployMethodName, getForwardEdit, getListDeployableFiles, getListDeployedFiles, isConfigurable, isDomain, isModule, refreshJoramTree, refreshMBeansTree, refreshServiceTree, refreshWebServiceTree, removeFile, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, execute, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getJonasBase, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getShortAttribute, getStringArrayAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, refreshDomainDeployTree, refreshDomainMonitoringTree, refreshServerTree, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setShortAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute, toStringShortAttribute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListRealmsAction

public ListRealmsAction()
Method Detail

executeAction

public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping,
                                                            org.apache.struts.action.ActionForm p_Form,
                                                            javax.servlet.http.HttpServletRequest p_Request,
                                                            javax.servlet.http.HttpServletResponse p_Response)
                                                     throws java.io.IOException,
                                                            javax.servlet.ServletException
Specified by:
executeAction in class JonasBaseAction
Throws:
java.io.IOException
javax.servlet.ServletException

addRealmItem

protected void addRealmItem(java.util.ArrayList p_Realms,
                            java.lang.String p_Type,
                            java.lang.String p_SecurityRealmUsed,
                            java.lang.String serverName)
                     throws java.lang.Exception
Add RealmItem in the list.

Parameters:
p_Realms - List to add found items
p_Type - Type item to add (memory or datasource or ldap)
p_SecurityRealmUsed - Name of realm used by the security service or null if nothing used
Throws:
java.lang.Exception