Class ResourceServerAdapter
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.authorization.ResourceServerAdapter
-
- All Implemented Interfaces:
CachedModel<ResourceServer>,ResourceServer
public class ResourceServerAdapter extends Object implements ResourceServer, CachedModel<ResourceServer>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.ResourceServer
ResourceServer.SearchableFields
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedResourceServercachedprotected StoreFactoryCacheSessioncacheSessionprotected booleaninvalidatedprotected ResourceServerupdated
-
Constructor Summary
Constructors Constructor Description ResourceServerAdapter(CachedResourceServer cached, StoreFactoryCacheSession cacheSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetCacheTimestamp()DecisionStrategygetDecisionStrategy()ResourceServergetDelegateForUpdate()StringgetId()PolicyEnforcementModegetPolicyEnforcementMode()inthashCode()voidinvalidate()protected voidinvalidateFlag()booleanisAllowRemoteResourceManagement()protected booleanisUpdated()voidsetAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)voidsetDecisionStrategy(DecisionStrategy decisionStrategy)voidsetPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
-
-
-
Field Detail
-
cached
protected CachedResourceServer cached
-
cacheSession
protected StoreFactoryCacheSession cacheSession
-
updated
protected ResourceServer updated
-
invalidated
protected boolean invalidated
-
-
Constructor Detail
-
ResourceServerAdapter
public ResourceServerAdapter(CachedResourceServer cached, StoreFactoryCacheSession cacheSession)
-
-
Method Detail
-
getDelegateForUpdate
public ResourceServer getDelegateForUpdate()
- Specified by:
getDelegateForUpdatein interfaceCachedModel<ResourceServer>
-
invalidateFlag
protected void invalidateFlag()
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceCachedModel<ResourceServer>
-
getCacheTimestamp
public long getCacheTimestamp()
- Specified by:
getCacheTimestampin interfaceCachedModel<ResourceServer>
-
isUpdated
protected boolean isUpdated()
-
getId
public String getId()
- Specified by:
getIdin interfaceResourceServer
-
isAllowRemoteResourceManagement
public boolean isAllowRemoteResourceManagement()
- Specified by:
isAllowRemoteResourceManagementin interfaceResourceServer
-
setAllowRemoteResourceManagement
public void setAllowRemoteResourceManagement(boolean allowRemoteResourceManagement)
- Specified by:
setAllowRemoteResourceManagementin interfaceResourceServer
-
getPolicyEnforcementMode
public PolicyEnforcementMode getPolicyEnforcementMode()
- Specified by:
getPolicyEnforcementModein interfaceResourceServer
-
setPolicyEnforcementMode
public void setPolicyEnforcementMode(PolicyEnforcementMode enforcementMode)
- Specified by:
setPolicyEnforcementModein interfaceResourceServer
-
getDecisionStrategy
public DecisionStrategy getDecisionStrategy()
- Specified by:
getDecisionStrategyin interfaceResourceServer
-
setDecisionStrategy
public void setDecisionStrategy(DecisionStrategy decisionStrategy)
- Specified by:
setDecisionStrategyin interfaceResourceServer
-
-