public class RoleAdapter extends AbstractMongoAdapter<MongoRoleEntity> implements RoleModel
invocationContext
Constructor and Description |
---|
RoleAdapter(KeycloakSession session,
RealmModel realm,
MongoRoleEntity roleEntity,
MongoStoreInvocationContext invContext) |
RoleAdapter(KeycloakSession session,
RealmModel realm,
MongoRoleEntity roleEntity,
RoleContainerModel roleContainer,
MongoStoreInvocationContext invContext) |
Modifier and Type | Method and Description |
---|---|
void |
addCompositeRole(RoleModel childRole) |
boolean |
equals(Object o) |
Set<RoleModel> |
getComposites() |
RoleContainerModel |
getContainer() |
String |
getContainerId() |
String |
getDescription() |
String |
getId() |
MongoRoleEntity |
getMongoEntity() |
String |
getName() |
MongoRoleEntity |
getRole() |
int |
hashCode() |
boolean |
hasRole(RoleModel role) |
boolean |
isClientRole() |
boolean |
isComposite() |
boolean |
isScopeParamRequired() |
void |
removeCompositeRole(RoleModel childRole) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setScopeParamRequired(boolean scopeParamRequired) |
protected void |
updateRole() |
getMongoStore, updateMongoEntity
public RoleAdapter(KeycloakSession session, RealmModel realm, MongoRoleEntity roleEntity, MongoStoreInvocationContext invContext)
public RoleAdapter(KeycloakSession session, RealmModel realm, MongoRoleEntity roleEntity, RoleContainerModel roleContainer, MongoStoreInvocationContext invContext)
public String getDescription()
getDescription
in interface RoleModel
public void setDescription(String description)
setDescription
in interface RoleModel
public boolean isScopeParamRequired()
isScopeParamRequired
in interface RoleModel
public void setScopeParamRequired(boolean scopeParamRequired)
setScopeParamRequired
in interface RoleModel
public boolean isComposite()
isComposite
in interface RoleModel
protected void updateRole()
public void addCompositeRole(RoleModel childRole)
addCompositeRole
in interface RoleModel
public void removeCompositeRole(RoleModel childRole)
removeCompositeRole
in interface RoleModel
public Set<RoleModel> getComposites()
getComposites
in interface RoleModel
public boolean isClientRole()
isClientRole
in interface RoleModel
public String getContainerId()
getContainerId
in interface RoleModel
public RoleContainerModel getContainer()
getContainer
in interface RoleModel
public MongoRoleEntity getRole()
public MongoRoleEntity getMongoEntity()
getMongoEntity
in class AbstractMongoAdapter<MongoRoleEntity>
public boolean equals(Object o)
equals
in class AbstractMongoAdapter<MongoRoleEntity>
public int hashCode()
hashCode
in class AbstractMongoAdapter<MongoRoleEntity>
Copyright © 2016 JBoss by Red Hat. All rights reserved.