Use cached policy store in Infinispan PolicyAdapter (#20566)
This commit is contained in:
parent
b41904bf04
commit
1b06c4cf6c
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ public class PolicyAdapter implements Policy, CachedModel<Policy> {
|
|||
}
|
||||
if (associatedPolicies != null) return associatedPolicies;
|
||||
associatedPolicies = new HashSet<>();
|
||||
PolicyStore policyStore = cacheSession.getPolicyStoreDelegate();
|
||||
PolicyStore policyStore = cacheSession.getPolicyStore();
|
||||
String resourceServerId = cached.getResourceServerId();
|
||||
for (String id : cached.getAssociatedPoliciesIds(modelSupplier)) {
|
||||
Policy policy = policyStore.findById(InfinispanCacheStoreFactoryProviderFactory.NULL_REALM, cacheSession.getResourceServerStore().findById(InfinispanCacheStoreFactoryProviderFactory.NULL_REALM, resourceServerId), id);
|
||||
|
|
Loading…
Reference in a new issue