From: Sébastien Lesaint Date: Fri, 14 Apr 2017 09:17:49 +0000 (+0200) Subject: SONAR-9105 add GroupPermissionDao#deleteByRootComponentIdAndPermission X-Git-Tag: 6.4-RC1~215 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4922497fcdc5f91575232f18e4d786a6d4691f4f;p=sonarqube.git SONAR-9105 add GroupPermissionDao#deleteByRootComponentIdAndPermission --- diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/permission/GroupPermissionDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/permission/GroupPermissionDao.java index 97e77962499..cccf5a4d717 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/permission/GroupPermissionDao.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/permission/GroupPermissionDao.java @@ -146,6 +146,13 @@ public class GroupPermissionDao implements Dao { return mapper(dbSession).deleteByRootComponentIdAndGroupId(rootComponentId, groupId); } + /** + * Delete the specified permission for the specified component for any group (including group AnyOne). + */ + public int deleteByRootComponentIdAndPermission(DbSession dbSession, long rootComponentId, String permission) { + return mapper(dbSession).deleteByRootComponentIdAndPermission(rootComponentId, permission); + } + /** * Delete a single permission. It can be: *