geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r785208 - /geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Date Tue, 16 Jun 2009 13:33:16 GMT
Author: xuhaihong
Date: Tue Jun 16 13:33:16 2009
New Revision: 785208

URL: http://svn.apache.org/viewvc?rev=785208&view=rev
Log:
GERONIMO-4635 Security realm changes are lost after restart server (Patch from viola.lu)

Modified:
    geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java

Modified: geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java?rev=785208&r1=785207&r2=785208&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
(original)
+++ geronimo/server/branches/2.1/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Tue Jun 16 13:33:16 2009
@@ -575,9 +575,9 @@
             // apply settings
             for (int i = 0; i < data.getModules().length; i++) {
                 LoginModuleDetails details = data.getModules()[i];
-                node = (JaasLoginModuleChain) nodes.get(details.getLoginDomainName());
+                node = (JaasLoginModuleChain)PortletManager.getManagedBean(request, PortletManager.getNameFor(request,
nodes.get(details.getLoginDomainName())));
                 node.setControlFlag(details.getControlFlag());
-                LoginModuleSettings module = node.getLoginModule();
+                LoginModuleSettings module =(LoginModuleSettings)PortletManager.getManagedBean(request,
PortletManager.getNameFor(request, node.getLoginModule()));
                 module.setOptions(details.getOptions());
                 module.setWrapPrincipals(details.isWrapPrincipals());
                 module.setLoginModuleClass(details.getClassName());



Mime
View raw message