From: Olivier Lamy Date: Mon, 21 Jan 2013 16:37:28 +0000 (+0000) Subject: implements those methods directly as it is faster that getting all roles X-Git-Tag: archiva-1.4-M4~278 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfbe84c4182f88d228199b94ca6fb28918056722;p=archiva.git 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 --- 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 {