@Component(value="cuba_PredefinedRoleDefinitionRepository")
public class PredefinedRoleDefinitionRepository
extends java.lang.Object
Role
.Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized |
protected java.util.concurrent.locks.ReadWriteLock |
lock |
protected java.util.List<RoleDefinition> |
predefinedRoleDefinitionBeans |
protected java.util.Map<java.lang.String,RoleDefinition> |
predefinedRoleDefinitionsMap |
protected ServerConfig |
serverConfig |
Constructor and Description |
---|
PredefinedRoleDefinitionRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkInitialized() |
protected RoleDefinition |
copyRoleDefinition(RoleDefinition sourceRoleDef) |
RoleDefinition |
getRoleDefinitionByName(java.lang.String name) |
java.util.Collection<RoleDefinition> |
getRoleDefinitions() |
protected void |
init() |
void |
registerRoleDefinition(RoleDefinition roleDefinition) |
void |
reset() |
@Inject protected java.util.List<RoleDefinition> predefinedRoleDefinitionBeans
@Inject protected ServerConfig serverConfig
protected java.util.Map<java.lang.String,RoleDefinition> predefinedRoleDefinitionsMap
protected volatile boolean initialized
protected java.util.concurrent.locks.ReadWriteLock lock
public java.util.Collection<RoleDefinition> getRoleDefinitions()
@Nullable public RoleDefinition getRoleDefinitionByName(java.lang.String name)
public void registerRoleDefinition(RoleDefinition roleDefinition)
protected void checkInitialized()
protected void init()
protected RoleDefinition copyRoleDefinition(RoleDefinition sourceRoleDef)
public void reset()