archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1436469 - /archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java
Date Mon, 21 Jan 2013 16:37:28 GMT
Author: olamy
Date: Mon Jan 21 16:37:28 2013
New Revision: 1436469

URL: http://svn.apache.org/viewvc?rev=1436469&view=rev
Log:
implements those methods directly as it is faster that getting all roles

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java?rev=1436469&r1=1436468&r2=1436469&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java
Mon Jan 21 16:37:28 2013
@@ -269,6 +269,18 @@ public class ArchivaRbacManager
         return getRbacManagerForCommon().getUserAssignment( principal );
     }
 
+    @Override
+    public boolean userAssignmentExists( String principal )
+    {
+        return getRbacManagerForCommon().userAssignmentExists( principal );
+    }
+
+    @Override
+    public boolean userAssignmentExists( UserAssignment assignment )
+    {
+        return getRbacManagerForCommon().userAssignmentExists( assignment );
+    }
+
     public List<UserAssignment> getAllUserAssignments()
         throws RbacManagerException
     {



Mime
View raw message