Class PolicyAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.PolicyAdapter
- All Implemented Interfaces:
CachedModel<Policy>,Policy
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Policy
Policy.FilterOption -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CachedPolicyprotected final StoreFactoryCacheSessionprotected booleanprotected PolicyFields inherited from interface org.keycloak.authorization.model.Policy
CONFIG_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociatedPolicy(Policy associatedPolicy) voidaddResource(Resource resource) voidbooleanlonggetId()getLogic()getName()getOwner()getType()inthashCode()voidprotected voidprotected booleanvoidvoidremoveAssociatedPolicy(Policy associatedPolicy) voidremoveConfig(String name) voidremoveResource(Resource resource) voidremoveScope(Scope scope) voidvoidsetDecisionStrategy(DecisionStrategy decisionStrategy) voidsetDescription(String description) voidvoidvoid
-
Field Details
-
cached
-
cacheSession
-
updated
-
invalidated
protected boolean invalidated -
associatedPolicies
-
resources
-
scopes
-
-
Constructor Details
-
PolicyAdapter
-
-
Method Details
-
getDelegateForUpdate
- Specified by:
getDelegateForUpdatein interfaceCachedModel<Policy>
-
invalidateFlag
protected void invalidateFlag() -
invalidate
public void invalidate()- Specified by:
invalidatein interfaceCachedModel<Policy>
-
getCacheTimestamp
public long getCacheTimestamp()- Specified by:
getCacheTimestampin interfaceCachedModel<Policy>
-
isUpdated
protected boolean isUpdated() -
getId
-
getName
-
setName
-
getResourceServer
- Specified by:
getResourceServerin interfacePolicy
-
getType
-
getDecisionStrategy
- Specified by:
getDecisionStrategyin interfacePolicy
-
setDecisionStrategy
- Specified by:
setDecisionStrategyin interfacePolicy
-
getLogic
-
setLogic
-
getConfig
-
setConfig
-
removeConfig
- Specified by:
removeConfigin interfacePolicy
-
putConfig
-
getDescription
- Specified by:
getDescriptionin interfacePolicy
-
setDescription
- Specified by:
setDescriptionin interfacePolicy
-
getAssociatedPolicies
- Specified by:
getAssociatedPoliciesin interfacePolicy
-
getResources
- Specified by:
getResourcesin interfacePolicy
-
addScope
-
removeScope
- Specified by:
removeScopein interfacePolicy
-
addAssociatedPolicy
- Specified by:
addAssociatedPolicyin interfacePolicy
-
removeAssociatedPolicy
- Specified by:
removeAssociatedPolicyin interfacePolicy
-
addResource
- Specified by:
addResourcein interfacePolicy
-
removeResource
- Specified by:
removeResourcein interfacePolicy
-
getScopes
-
getOwner
-
setOwner
-
equals
-
hashCode
public int hashCode()
-