Class RoleAdapter
- java.lang.Object
-
- org.keycloak.models.cache.infinispan.RoleAdapter
-
- All Implemented Interfaces:
RoleModel
public class RoleAdapter extends Object implements RoleModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.RoleModel
RoleModel.SearchableFields
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedRolecachedprotected RealmCacheSessioncacheSessionprotected Set<RoleModel>compositesprotected booleaninvalidatedprotected RealmModelrealmprotected RoleModelupdated
-
Constructor Summary
Constructors Constructor Description RoleAdapter(CachedRole cached, RealmCacheSession session, RealmModel realm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCompositeRole(RoleModel role)booleanequals(Object o)Map<String,List<String>>getAttributes()Stream<String>getAttributeStream(String name)Stream<RoleModel>getCompositesStream()Stream<RoleModel>getCompositesStream(String search, Integer first, Integer max)RoleContainerModelgetContainer()StringgetContainerId()protected voidgetDelegateForUpdate()StringgetDescription()StringgetFirstAttribute(String name)StringgetId()StringgetName()inthashCode()booleanhasRole(RoleModel role)voidinvalidate()booleanisClientRole()booleanisComposite()protected booleanisUpdated()voidremoveAttribute(String name)voidremoveCompositeRole(RoleModel role)voidsetAttribute(String name, List<String> values)voidsetDescription(String description)voidsetName(String name)voidsetSingleAttribute(String name, String value)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.RoleModel
getAttribute, getComposites
-
-
-
-
Field Detail
-
updated
protected RoleModel updated
-
cached
protected CachedRole cached
-
cacheSession
protected RealmCacheSession cacheSession
-
realm
protected RealmModel realm
-
invalidated
protected boolean invalidated
-
-
Constructor Detail
-
RoleAdapter
public RoleAdapter(CachedRole cached, RealmCacheSession session, RealmModel realm)
-
-
Method Detail
-
getDelegateForUpdate
protected void getDelegateForUpdate()
-
invalidate
public void invalidate()
-
isUpdated
protected boolean isUpdated()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceRoleModel
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceRoleModel
-
isComposite
public boolean isComposite()
- Specified by:
isCompositein interfaceRoleModel
-
addCompositeRole
public void addCompositeRole(RoleModel role)
- Specified by:
addCompositeRolein interfaceRoleModel
-
removeCompositeRole
public void removeCompositeRole(RoleModel role)
- Specified by:
removeCompositeRolein interfaceRoleModel
-
getCompositesStream
public Stream<RoleModel> getCompositesStream()
- Specified by:
getCompositesStreamin interfaceRoleModel
-
getCompositesStream
public Stream<RoleModel> getCompositesStream(String search, Integer first, Integer max)
- Specified by:
getCompositesStreamin interfaceRoleModel
-
isClientRole
public boolean isClientRole()
- Specified by:
isClientRolein interfaceRoleModel
-
getContainerId
public String getContainerId()
- Specified by:
getContainerIdin interfaceRoleModel
-
getContainer
public RoleContainerModel getContainer()
- Specified by:
getContainerin interfaceRoleModel
-
setSingleAttribute
public void setSingleAttribute(String name, String value)
- Specified by:
setSingleAttributein interfaceRoleModel
-
setAttribute
public void setAttribute(String name, List<String> values)
- Specified by:
setAttributein interfaceRoleModel
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceRoleModel
-
getFirstAttribute
public String getFirstAttribute(String name)
- Specified by:
getFirstAttributein interfaceRoleModel
-
getAttributeStream
public Stream<String> getAttributeStream(String name)
- Specified by:
getAttributeStreamin interfaceRoleModel
-
getAttributes
public Map<String,List<String>> getAttributes()
- Specified by:
getAttributesin interfaceRoleModel
-
-