From dfbe84c4182f88d228199b94ca6fb28918056722 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 21 Jan 2013 16:37:28 +0000 Subject: [PATCH] implements those methods directly as it is faster that getting all roles git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1436469 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/security/ArchivaRbacManager.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java index ff6b11bf6..fd7d2e3f7 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaRbacManager.java @@ -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 getAllUserAssignments() throws RbacManagerException { -- 2.39.5