com.atlassian.bamboo.security
Class BambooCachingPermissionManagerFacade

java.lang.Object
  extended by com.atlassian.bamboo.security.BambooCachingPermissionManagerFacade

public class BambooCachingPermissionManagerFacade
extends java.lang.Object

This class is a variant of BambooPermissionManagerImp that caching for retrieved ACLs and Sids. Should be configured as a non-singleton, non-wrapped bean in Spring. It's meant to be used only in places where you perform a lot of permission checks in a short period of time. Once cached, the objects are not invalidated.


Constructor Summary
BambooCachingPermissionManagerFacade()
           
 
Method Summary
 boolean hasPermission(java.lang.String permission, ImmutablePlan plan)
           
 void primeAclCache(java.util.List<?> objects)
          Adds ACLs for supplied objects to cache.
 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
 

Constructor Detail

BambooCachingPermissionManagerFacade

public BambooCachingPermissionManagerFacade()
Method Detail

hasPermission

public boolean hasPermission(java.lang.String permission,
                             ImmutablePlan plan)

primeAclCache

public void primeAclCache(@NotNull
                          java.util.List<?> objects)
Adds ACLs for supplied objects to cache. Should be used before a bulk checks of multiple objects.

Parameters:
objects -

setSidRetrievalStrategy

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

setAclService

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

setObjectIdentityRetrievalStrategy

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

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

setOverrideAuthorities

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

setPlanManager

public void setPlanManager(PlanManager planManager)

setAdministrationConfigurationManager

public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)


Copyright © 2012 Atlassian. All Rights Reserved.