Class DatabaseRowLevelRoleProvider
java.lang.Object
io.jmix.securitydata.impl.role.provider.BaseDatabaseRoleProvider<RowLevelRole>
io.jmix.securitydata.impl.role.provider.DatabaseRowLevelRoleProvider
- All Implemented Interfaces:
RoleProvider<RowLevelRole>
,RowLevelRoleProvider
@Component("sec_DatabaseRowLevelRoleProvider")
public class DatabaseRowLevelRoleProvider
extends BaseDatabaseRoleProvider<RowLevelRole>
implements RowLevelRoleProvider
Role provider that gets row level roles from the database from the
RowLevelRoleEntity
.-
Field Summary
Fields inherited from class io.jmix.securitydata.impl.role.provider.BaseDatabaseRoleProvider
accessManager, dataManager, metadata
-
Constructor Summary
ConstructorDescriptionDatabaseRowLevelRoleProvider
(org.springframework.scripting.ScriptEvaluator scriptEvaluator, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildFetchPlan
(FetchPlanBuilder fetchPlanBuilder) protected RowLevelRole
RowLevelBiPredicate<Object,
org.springframework.context.ApplicationContext> createPredicateFromScript
(String script) protected Class<?>
Methods inherited from class io.jmix.securitydata.impl.role.provider.BaseDatabaseRoleProvider
buildFindByCodeQuery, deleteRole, findRoleByCode, getAllRoles, setAccessManager, setDataManager, setMetadata
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
deleteRole, findRoleByCode, getAllRoles, getRoleByCode
-
Constructor Details
-
DatabaseRowLevelRoleProvider
public DatabaseRowLevelRoleProvider(org.springframework.scripting.ScriptEvaluator scriptEvaluator, org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
getRoleClass
- Specified by:
getRoleClass
in classBaseDatabaseRoleProvider<RowLevelRole>
-
buildFetchPlan
- Specified by:
buildFetchPlan
in classBaseDatabaseRoleProvider<RowLevelRole>
-
buildRole
- Specified by:
buildRole
in classBaseDatabaseRoleProvider<RowLevelRole>
-
createPredicateFromScript
public RowLevelBiPredicate<Object,org.springframework.context.ApplicationContext> createPredicateFromScript(String script)
-