public class RoleAdapter extends Object implements RoleModel, JpaModel<RoleEntity>
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected RealmModel |
realm |
protected RoleEntity |
role |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
RoleAdapter(KeycloakSession session,
RealmModel realm,
javax.persistence.EntityManager em,
RoleEntity role) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompositeRole(RoleModel role) |
boolean |
equals(Object o) |
Set<RoleModel> |
getComposites() |
RoleContainerModel |
getContainer() |
String |
getContainerId() |
String |
getDescription() |
RoleEntity |
getEntity() |
String |
getId() |
String |
getName() |
int |
hashCode() |
boolean |
hasRole(RoleModel role) |
boolean |
isClientRole() |
boolean |
isComposite() |
boolean |
isScopeParamRequired() |
void |
removeCompositeRole(RoleModel role) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setRole(RoleEntity role) |
void |
setScopeParamRequired(boolean scopeParamRequired) |
static RoleEntity |
toRoleEntity(RoleModel model,
javax.persistence.EntityManager em) |
protected RoleEntity role
protected javax.persistence.EntityManager em
protected RealmModel realm
protected KeycloakSession session
public RoleAdapter(KeycloakSession session, RealmModel realm, javax.persistence.EntityManager em, RoleEntity role)
public RoleEntity getEntity()
getEntity in interface JpaModel<RoleEntity>public void setRole(RoleEntity role)
public String getDescription()
getDescription in interface RoleModelpublic void setDescription(String description)
setDescription in interface RoleModelpublic boolean isScopeParamRequired()
isScopeParamRequired in interface RoleModelpublic void setScopeParamRequired(boolean scopeParamRequired)
setScopeParamRequired 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 boolean isClientRole()
isClientRole in interface RoleModelpublic String getContainerId()
getContainerId in interface RoleModelpublic RoleContainerModel getContainer()
getContainer in interface RoleModelpublic static RoleEntity toRoleEntity(RoleModel model, javax.persistence.EntityManager em)
Copyright © 2016 JBoss by Red Hat. All rights reserved.