public class RoleAdapter extends Object implements RoleModel
| Modifier and Type | Field and Description |
|---|---|
protected KeycloakCache |
cache |
protected CachedRole |
cached |
protected CacheKeycloakSession |
cacheSession |
protected RealmModel |
realm |
protected RoleModel |
updated |
| Constructor and Description |
|---|
RoleAdapter(CachedRole cached,
KeycloakCache cache,
CacheKeycloakSession session,
RealmModel realm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompositeRole(RoleModel role) |
boolean |
equals(Object o) |
Set<RoleModel> |
getComposites() |
RoleContainerModel |
getContainer() |
protected void |
getDelegateForUpdate() |
String |
getDescription() |
String |
getId() |
String |
getName() |
int |
hashCode() |
boolean |
hasRole(RoleModel role) |
boolean |
isComposite() |
void |
removeCompositeRole(RoleModel role) |
void |
setDescription(String description) |
void |
setName(String name) |
protected RoleModel updated
protected CachedRole cached
protected KeycloakCache cache
protected CacheKeycloakSession cacheSession
protected RealmModel realm
public RoleAdapter(CachedRole cached, KeycloakCache cache, CacheKeycloakSession session, RealmModel realm)
protected void getDelegateForUpdate()
public String getDescription()
getDescription in interface RoleModelpublic void setDescription(String description)
setDescription in interface RoleModelpublic boolean isComposite()
isComposite in interface RoleModelpublic void addCompositeRole(RoleModel role)
addCompositeRole in interface RoleModelpublic void removeCompositeRole(RoleModel role)
removeCompositeRole in interface RoleModelpublic Set<RoleModel> getComposites()
getComposites in interface RoleModelpublic RoleContainerModel getContainer()
getContainer in interface RoleModelCopyright © 2014. All Rights Reserved.