com.atlassian.bamboo.security
Class BambooPermissionManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.security.BambooPermissionManagerImpl
All Implemented Interfaces:
BambooPermissionManager

public class BambooPermissionManagerImpl
extends java.lang.Object
implements BambooPermissionManager


Field Summary
protected  org.acegisecurity.acls.MutableAclService aclService
           
static java.lang.String ROLE_AMDIN
           
 
Fields inherited from interface com.atlassian.bamboo.security.BambooPermissionManager
SYSTEM_AUTHORITY
 
Constructor Summary
BambooPermissionManagerImpl()
           
 
Method Summary
protected  org.acegisecurity.acls.objectidentity.ObjectIdentity createObjectIdentity(java.lang.Object object)
           
protected  org.acegisecurity.acls.Acl getAcl(java.lang.Object object)
           
 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
 void setAclService(org.acegisecurity.acls.MutableAclService aclService)
           
 void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setObjectIdentityRetrievalStrategy(org.acegisecurity.acls.objectidentity.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
           
 void setOverrideAuthorities(org.acegisecurity.GrantedAuthority[] overrideAuthorities)
           
 void setPlanManager(PlanManager planManager)
           
 void setSidRetrievalStrategy(org.acegisecurity.acls.sid.SidRetrievalStrategy sidRetrievalStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_AMDIN

public static final java.lang.String ROLE_AMDIN
See Also:
Constant Field Values

aclService

protected org.acegisecurity.acls.MutableAclService aclService
Constructor Detail

BambooPermissionManagerImpl

public BambooPermissionManagerImpl()
Method Detail

hasPermission

public boolean hasPermission(org.acegisecurity.Authentication authentication,
                             java.lang.String permission,
                             java.lang.Object object)
Specified by:
hasPermission in interface BambooPermissionManager

getAcl

protected org.acegisecurity.acls.Acl getAcl(@NotNull
                                            java.lang.Object object)

createObjectIdentity

protected org.acegisecurity.acls.objectidentity.ObjectIdentity createObjectIdentity(@NotNull
                                                                                    java.lang.Object object)

hasPermission

public boolean hasPermission(java.lang.String permission,
                             java.lang.Object object)
Specified by:
hasPermission in interface BambooPermissionManager

hasPermission

public boolean hasPermission(java.lang.String username,
                             java.lang.String permission,
                             java.lang.Object object)
Specified by:
hasPermission in interface BambooPermissionManager

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 java.lang.String planKey)
Specified by:
hasPlanPermission in interface BambooPermissionManager

hasGlobalPermission

public boolean hasGlobalPermission(java.lang.String permission)
Specified by:
hasGlobalPermission in interface BambooPermissionManager

getPermissionsForPlan

public java.util.Collection<org.acegisecurity.acls.Permission> getPermissionsForPlan(java.lang.String planKey)
Specified by:
getPermissionsForPlan in interface BambooPermissionManager

isEnableSignup

public boolean isEnableSignup()
Specified by:
isEnableSignup in interface BambooPermissionManager

getAdminGroups

@NotNull
public java.util.Collection<java.lang.String> getAdminGroups()
Description copied from interface: BambooPermissionManager
Get a list of all the groups that have global administration permission

Specified by:
getAdminGroups in interface BambooPermissionManager
Returns:
A list of all the groups that have global administration permission

isAdmin

public boolean isAdmin(java.lang.String username)
Description copied from interface: BambooPermissionManager
Returns true if the user is an admin, false if not

Specified by:
isAdmin in interface BambooPermissionManager
Parameters:
username - the user
Returns:
true if the user is an admin, false if not

isSystemAdmin

public boolean isSystemAdmin(java.lang.String username)
Description copied from interface: BambooPermissionManager
Returns true if the user is a sysadmin, false if not

Specified by:
isSystemAdmin in interface BambooPermissionManager
Parameters:
username - the user
Returns:
true if the user is a sysadmin, false if not

setAdministrationConfigurationManager

public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)

setAclService

public void setAclService(org.acegisecurity.acls.MutableAclService aclService)

setSidRetrievalStrategy

public void setSidRetrievalStrategy(org.acegisecurity.acls.sid.SidRetrievalStrategy sidRetrievalStrategy)

setPlanManager

public void setPlanManager(PlanManager planManager)

setOverrideAuthorities

public void setOverrideAuthorities(org.acegisecurity.GrantedAuthority[] overrideAuthorities)

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

setObjectIdentityRetrievalStrategy

public void setObjectIdentityRetrievalStrategy(org.acegisecurity.acls.objectidentity.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)


Copyright © 2012 Atlassian. All Rights Reserved.