]> source.dussan.org Git - archiva.git/commitdiff
implements those methods directly as it is faster that getting all roles
authorOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 16:37:28 +0000 (16:37 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 16:37:28 +0000 (16:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1436469 13f79535-47bb-0310-9956-ffa450edef68

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

index ff6b11bf6f202911c8f7092686bd8707e9b9922e..fd7d2e3f76513e9cd4aa29bc35543b78b936eee3 100644 (file)
@@ -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
     {