com.atlassian.bamboo.security
Interface BambooPermissionManager

All Known Implementing Classes:
BambooPermissionManagerImpl

public interface BambooPermissionManager


Field Summary
static org.acegisecurity.adapters.PrincipalAcegiUserToken SYSTEM_AUTHORITY
           
 
Method Summary
 java.util.Collection<java.lang.String> getAdminGroups()
          Get a list of all the groups that have global administration permission
 java.util.Collection<org.acegisecurity.acls.Permission> getPermissionsForPlan(java.lang.String planKey)
           
 boolean hasGlobalPermission(java.lang.String permission)
           
 boolean hasPermission(org.acegisecurity.Authentication authentication, java.lang.String permission, java.lang.Object object)
           
 boolean hasPermission(java.lang.String permission, java.lang.Object object)
           
 boolean hasPermission(java.lang.String username, java.lang.String permission, java.lang.Object object)
           
 boolean hasPlanPermission(java.lang.String permission, java.lang.String planKey)
           
 boolean isAdmin(java.lang.String username)
          Returns true if the user is an admin, false if not
 boolean isEnableSignup()
           
 boolean isSystemAdmin(java.lang.String username)
          Returns true if the user is a sysadmin, false if not
 

Field Detail

SYSTEM_AUTHORITY

static final org.acegisecurity.adapters.PrincipalAcegiUserToken SYSTEM_AUTHORITY
Method Detail

hasPermission

boolean hasPermission(org.acegisecurity.Authentication authentication,
                      java.lang.String permission,
                      java.lang.Object object)

hasPermission

boolean hasPermission(java.lang.String username,
                      java.lang.String permission,
                      java.lang.Object object)

hasPermission

boolean hasPermission(java.lang.String permission,
                      java.lang.Object object)

hasPlanPermission

boolean hasPlanPermission(java.lang.String permission,
                          java.lang.String planKey)

hasGlobalPermission

boolean hasGlobalPermission(java.lang.String permission)

isEnableSignup

boolean isEnableSignup()

getPermissionsForPlan

java.util.Collection<org.acegisecurity.acls.Permission> getPermissionsForPlan(java.lang.String planKey)

getAdminGroups

java.util.Collection<java.lang.String> getAdminGroups()
Get a list of all the groups that have global administration permission

Returns:
A list of all the groups that have global administration permission

isAdmin

boolean isAdmin(java.lang.String username)
Returns true if the user is an admin, false if not

Parameters:
username - the user
Returns:
true if the user is an admin, false if not

isSystemAdmin

boolean isSystemAdmin(java.lang.String username)
Returns true if the user is a sysadmin, false if not

Parameters:
username - the user
Returns:
true if the user is a sysadmin, false if not


Copyright © 2012 Atlassian. All Rights Reserved.