geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r555703 - /geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Date Thu, 12 Jul 2007 17:48:26 GMT
Author: vamsic007
Date: Thu Jul 12 10:48:23 2007
New Revision: 555703

URL: http://svn.apache.org/viewvc?view=rev&rev=555703
Log:
Fix the expression that is always resolving to GerControlFlagType.OPTIONAL

Modified:
    geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java

Modified: geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java?view=diff&rev=555703&r1=555702&r2=555703
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Thu Jul 12 10:48:23 2007
@@ -394,10 +394,10 @@
                 continue;
             }
             GerLoginModuleType module = login.addNewLoginModule();
-            module.setControlFlag(details.getControlFlag().equals("OPTIONAL") ? GerControlFlagType.OPTIONAL
:
-                    details.getControlFlag().equals("REQUIRED") ? GerControlFlagType.REQUIRED
:
-                            details.getControlFlag().equals("REQUISITE") ? GerControlFlagType.REQUISITE
:
-                                    details.getControlFlag().equals("SUFFICIENT") ? GerControlFlagType.SUFFICIENT
:
+            module.setControlFlag(details.getControlFlag().equals(LoginModuleControlFlag.OPTIONAL)
? GerControlFlagType.OPTIONAL :
+                    details.getControlFlag().equals(LoginModuleControlFlag.REQUIRED) ? GerControlFlagType.REQUIRED
:
+                            details.getControlFlag().equals(LoginModuleControlFlag.REQUISITE)
? GerControlFlagType.REQUISITE :
+                                    details.getControlFlag().equals(LoginModuleControlFlag.SUFFICIENT)
? GerControlFlagType.SUFFICIENT :
                                             GerControlFlagType.OPTIONAL);
             module.setLoginDomainName(details.getLoginDomainName());
             module.setLoginModuleClass(details.getClassName());



Mime
View raw message