com.atlassian.bamboo.security
Class BambooCachingPermissionManagerFacade
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BambooCachingPermissionManagerFacade
public BambooCachingPermissionManagerFacade()
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.