Class BaseDatabaseRoleProvider<T extends BaseRole>
java.lang.Object
io.jmix.securitydata.impl.role.provider.BaseDatabaseRoleProvider<T>
- All Implemented Interfaces:
RoleProvider<T>
- Direct Known Subclasses:
DatabaseResourceRoleProvider
,DatabaseRowLevelRoleProvider
public abstract class BaseDatabaseRoleProvider<T extends BaseRole>
extends Object
implements RoleProvider<T>
Base role provider that gets resource roles/row level roles from the database.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected UnconstrainedDataManager
protected Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
buildFetchPlan
(FetchPlanBuilder fetchPlanBuilder) protected String
protected abstract T
boolean
deleteRole
(T role) findRoleByCode
(String code) protected abstract Class<?>
void
setAccessManager
(AccessManager accessManager) void
setDataManager
(UnconstrainedDataManager dataManager) void
setMetadata
(Metadata metadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.security.role.RoleProvider
getRoleByCode
-
Field Details
-
dataManager
-
metadata
-
accessManager
-
-
Constructor Details
-
BaseDatabaseRoleProvider
public BaseDatabaseRoleProvider()
-
-
Method Details
-
getAllRoles
- Specified by:
getAllRoles
in interfaceRoleProvider<T extends BaseRole>
-
findRoleByCode
- Specified by:
findRoleByCode
in interfaceRoleProvider<T extends BaseRole>
-
deleteRole
- Specified by:
deleteRole
in interfaceRoleProvider<T extends BaseRole>
-
setDataManager
-
setMetadata
-
setAccessManager
-
buildRole
-
getRoleClass
-
buildFetchPlan
-
buildFindByCodeQuery
-