public class PolicyAdapter extends Object implements Policy, CachedModel<Policy>
| Modifier and Type | Field and Description |
|---|---|
protected Set<Policy> |
associatedPolicies |
protected CachedPolicy |
cached |
protected StoreFactoryCacheSession |
cacheSession |
protected boolean |
invalidated |
protected Set<Resource> |
resources |
protected Set<Scope> |
scopes |
protected Policy |
updated |
| Constructor and Description |
|---|
PolicyAdapter(CachedPolicy cached,
StoreFactoryCacheSession cacheSession) |
protected final CachedPolicy cached
protected final StoreFactoryCacheSession cacheSession
protected Policy updated
protected boolean invalidated
public PolicyAdapter(CachedPolicy cached, StoreFactoryCacheSession cacheSession)
public Policy getDelegateForUpdate()
getDelegateForUpdate in interface CachedModel<Policy>protected void invalidateFlag()
public void invalidate()
invalidate in interface CachedModel<Policy>public long getCacheTimestamp()
getCacheTimestamp in interface CachedModel<Policy>protected boolean isUpdated()
public ResourceServer getResourceServer()
getResourceServer in interface Policypublic DecisionStrategy getDecisionStrategy()
getDecisionStrategy in interface Policypublic void setDecisionStrategy(DecisionStrategy decisionStrategy)
setDecisionStrategy in interface Policypublic void removeConfig(String name)
removeConfig in interface Policypublic String getDescription()
getDescription in interface Policypublic void setDescription(String description)
setDescription in interface Policypublic Set<Policy> getAssociatedPolicies()
getAssociatedPolicies in interface Policypublic Set<Resource> getResources()
getResources in interface Policypublic void removeScope(Scope scope)
removeScope in interface Policypublic void addAssociatedPolicy(Policy associatedPolicy)
addAssociatedPolicy in interface Policypublic void removeAssociatedPolicy(Policy associatedPolicy)
removeAssociatedPolicy in interface Policypublic void addResource(Resource resource)
addResource in interface Policypublic void removeResource(Resource resource)
removeResource in interface PolicyCopyright © 2020 JBoss by Red Hat. All rights reserved.