Package org.molgenis.data.security.auth
Class CachedRoleHierarchyImpl
- java.lang.Object
-
- org.molgenis.data.security.auth.CachedRoleHierarchyImpl
-
- All Implemented Interfaces:
CachedRoleHierarchy,TransactionListener,org.springframework.security.access.hierarchicalroles.RoleHierarchy
public class CachedRoleHierarchyImpl extends Object implements TransactionListener, CachedRoleHierarchy
-
-
Constructor Summary
Constructors Constructor Description CachedRoleHierarchyImpl(DataserviceRoleHierarchy dataserviceRoleHierarchy, TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCommitTransaction(String transactionId)voiddoCleanupAfterCompletion(String transactionId)Collection<? extends org.springframework.security.core.GrantedAuthority>getReachableGrantedAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)voidmarkRoleHierarchyCacheDirty()Marks the role hierarchy cache as dirty for the current transaction/thread.voidrollbackTransaction(String transactionId)voidtransactionStarted(String transactionId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.molgenis.data.transaction.TransactionListener
commitTransaction
-
-
-
-
Constructor Detail
-
CachedRoleHierarchyImpl
public CachedRoleHierarchyImpl(DataserviceRoleHierarchy dataserviceRoleHierarchy, TransactionManager transactionManager)
-
-
Method Detail
-
getReachableGrantedAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getReachableGrantedAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
- Specified by:
getReachableGrantedAuthoritiesin interfaceorg.springframework.security.access.hierarchicalroles.RoleHierarchy
-
markRoleHierarchyCacheDirty
public void markRoleHierarchyCacheDirty()
Marks the role hierarchy cache as dirty for the current transaction/thread.- Specified by:
markRoleHierarchyCacheDirtyin interfaceCachedRoleHierarchy
-
transactionStarted
public void transactionStarted(String transactionId)
- Specified by:
transactionStartedin interfaceTransactionListener
-
afterCommitTransaction
public void afterCommitTransaction(String transactionId)
- Specified by:
afterCommitTransactionin interfaceTransactionListener
-
rollbackTransaction
public void rollbackTransaction(String transactionId)
- Specified by:
rollbackTransactionin interfaceTransactionListener
-
doCleanupAfterCompletion
public void doCleanupAfterCompletion(String transactionId)
- Specified by:
doCleanupAfterCompletionin interfaceTransactionListener
-
-