Class BambooAclHelper

java.lang.Object
com.atlassian.bamboo.security.acegi.acls.BambooAclHelper

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

  • Method Details

    • listUsersWithPermissions

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

      public List<BambooPermission> getUserPermissions(@NotNull @NotNull org.acegisecurity.acls.Acl acl, @NotNull @NotNull String username, @NotNull @NotNull Collection<BambooPermission> supportedPermissions)
    • listGroupsWithPermissions

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

      public List<BambooPermission> getGroupPermissions(@NotNull @NotNull org.acegisecurity.acls.Acl acl, @NotNull @NotNull String group, @NotNull @NotNull Collection<BambooPermission> supportedPermissions)
    • getLoggedInPermissions

      public List<BambooPermission> getLoggedInPermissions(@NotNull @NotNull org.acegisecurity.acls.Acl acl, @NotNull @NotNull Collection<BambooPermission> supportedPermissions)
    • getAnonymousPermissions

      public List<BambooPermission> getAnonymousPermissions(@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)