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 Summary
Constructors Constructor Description BambooAclHelper(HibernateMutableAclService aclService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPermissionKeys(@NotNull org.acegisecurity.acls.MutableAcl acl, @NotNull List<String> permissionKeysToAdd)
@NotNull Set<String>
calculatePermissionKeysAfterRemoval(@NotNull org.acegisecurity.acls.MutableAcl acl, @NotNull List<String> permissionKeysToRemove)
List<BambooPermission>
getAnonymousPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull Collection<BambooPermission> supportedPermissions)
List<BambooPermission>
getGroupPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull String group, @NotNull Collection<BambooPermission> supportedPermissions)
List<BambooPermission>
getLoggedInPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull Collection<BambooPermission> supportedPermissions)
List<BambooPermission>
getUserPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull String username, @NotNull Collection<BambooPermission> supportedPermissions)
Iterable<String>
listGroupsWithPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull Collection<BambooPermission> supportedPermissions)
Iterable<String>
listUsersWithPermissions(@NotNull org.acegisecurity.acls.Acl acl, @NotNull Collection<BambooPermission> supportedPermissions)
boolean
removePermissionKeys(@NotNull org.acegisecurity.acls.MutableAcl acl, @NotNull List<String> permissionKeysToRemove)
-
-
-
Constructor Detail
-
BambooAclHelper
@Autowired public BambooAclHelper(HibernateMutableAclService aclService)
-
-
Method Detail
-
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)
-
-