Class BambooAclHelper


  • public class BambooAclHelper
    extends Object
    Another ACL helper abstracting permission operations on users, groups and roles.
    • Method Detail

      • listUsersWithPermissions

        public Iterable<String> listUsersWithPermissions​(@NotNull
                                                         @NotNull org.acegisecurity.acls.Acl acl,
                                                         @NotNull
                                                         @NotNull Collection<BambooPermission> supportedPermissions)
      • listGroupsWithPermissions

        public Iterable<String> listGroupsWithPermissions​(@NotNull
                                                          @NotNull org.acegisecurity.acls.Acl acl,
                                                          @NotNull
                                                          @NotNull Collection<BambooPermission> supportedPermissions)
      • addPermissionKeys

        public boolean addPermissionKeys​(@NotNull
                                         @NotNull org.acegisecurity.acls.MutableAcl acl,
                                         @NotNull
                                         @NotNull List<String> permissionKeysToAdd)
      • calculatePermissionKeysAfterRemoval

        @NotNull
        public @NotNull Set<String> calculatePermissionKeysAfterRemoval​(@NotNull
                                                                        @NotNull org.acegisecurity.acls.MutableAcl acl,
                                                                        @NotNull
                                                                        @NotNull List<String> permissionKeysToRemove)
      • removePermissionKeys

        public boolean removePermissionKeys​(@NotNull
                                            @NotNull org.acegisecurity.acls.MutableAcl acl,
                                            @NotNull
                                            @NotNull List<String> permissionKeysToRemove)