portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r695925 - /portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
Date Tue, 16 Sep 2008 14:44:59 GMT
Author: ate
Date: Tue Sep 16 07:44:59 2008
New Revision: 695925

URL: http://svn.apache.org/viewvc?rev=695925&view=rev
Log:
Fix associationHandler key creation

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java?rev=695925&r1=695924&r2=695925&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/BaseJetspeedPrincipalManager.java
Tue Sep 16 07:44:59 2008
@@ -172,7 +172,7 @@
 
     public final List<? extends JetspeedPrincipal> getAssociatedFrom(String principalFromName,
JetspeedPrincipalType from, String associationName)
     {
-        if ( !assHandlers.containsKey(new AssociationHandlerKey(from.getName(), principalType.getName(),
associationName)))
+        if ( !assHandlers.containsKey(new AssociationHandlerKey(associationName, from.getName(),
principalType.getName())))
         {
             // TODO: should we throw an exception here???
             return Collections.EMPTY_LIST;
@@ -182,7 +182,7 @@
 
     public final List<String> getAssociatedNamesFrom(String principalFromName, JetspeedPrincipalType
 from, String associationName)
     {
-        if ( !assHandlers.containsKey(new AssociationHandlerKey(from.getName(), principalType.getName(),
associationName)))
+        if ( !assHandlers.containsKey(new AssociationHandlerKey(associationName, from.getName(),
principalType.getName())))
         {
             // TODO: should we throw an exception here???
             return Collections.EMPTY_LIST;
@@ -192,7 +192,7 @@
 
     public final List<String> getAssociatedNamesTo(String principalToName, JetspeedPrincipalType
to, String associationName)
     {
-        if ( !assHandlers.containsKey(new AssociationHandlerKey(principalType.getName(),
to.getName(), associationName)))
+        if ( !assHandlers.containsKey(new AssociationHandlerKey(associationName, principalType.getName(),
to.getName())))
         {
             // TODO: should we throw an exception here???
             return Collections.EMPTY_LIST;
@@ -202,7 +202,7 @@
 
     public final List<? extends JetspeedPrincipal> getAssociatedTo(String principalToName,
JetspeedPrincipalType to, String associationName)
     {
-        if ( !assHandlers.containsKey(new AssociationHandlerKey(principalType.getName(),
to.getName(), associationName)))
+        if ( !assHandlers.containsKey(new AssociationHandlerKey(associationName, principalType.getName(),
to.getName())))
         {
             // TODO: should we throw an exception here???
             return Collections.EMPTY_LIST;



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message