Package io.jmix.securitydata.impl.role
Class DatabaseRolePersistence
java.lang.Object
io.jmix.securitydata.impl.role.DatabaseRolePersistence
- All Implemented Interfaces:
RolePersistence
@Component("sec_DatabaseRolePersistence")
public class DatabaseRolePersistence
extends Object
implements RolePersistence
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseRolePersistence
(org.springframework.context.ApplicationContext applicationContext, Metadata metadata, EntityStates entityStates, DataManager dataManager, FetchPlans fetchPlans, EntityImportExport entityImportExport, EntityImportPlans entityImportPlans, QueryTransformerFactory queryTransformerFactory, DatabaseRowLevelRoleProvider databaseRowLevelRoleProvider) -
Method Summary
Modifier and TypeMethodDescriptioncheckRowLevelJpqlPolicySyntax
(String entityName, String joinClause, String whereClause) checkRowLevelPredicatePolicySyntax
(String entityName, String script) byte[]
exportResourceRoles
(List<ResourceRoleModel> roleModels, boolean zip) byte[]
exportRowLevelRoles
(List<RowLevelRoleModel> roleModels, boolean zip) importResourceRoles
(byte[] data, boolean zip) importRowLevelRoles
(byte[] data, boolean zip) void
removeRoles
(Collection<? extends BaseRoleModel> roleModels) void
save
(ResourceRoleModel roleModel) void
save
(RowLevelRoleModel roleModel)
-
Constructor Details
-
DatabaseRolePersistence
public DatabaseRolePersistence(org.springframework.context.ApplicationContext applicationContext, Metadata metadata, EntityStates entityStates, DataManager dataManager, FetchPlans fetchPlans, EntityImportExport entityImportExport, EntityImportPlans entityImportPlans, QueryTransformerFactory queryTransformerFactory, DatabaseRowLevelRoleProvider databaseRowLevelRoleProvider)
-
-
Method Details
-
save
- Specified by:
save
in interfaceRolePersistence
-
save
- Specified by:
save
in interfaceRolePersistence
-
removeRoles
- Specified by:
removeRoles
in interfaceRolePersistence
-
exportResourceRoles
- Specified by:
exportResourceRoles
in interfaceRolePersistence
-
exportRowLevelRoles
- Specified by:
exportRowLevelRoles
in interfaceRolePersistence
-
importResourceRoles
- Specified by:
importResourceRoles
in interfaceRolePersistence
-
importRowLevelRoles
- Specified by:
importRowLevelRoles
in interfaceRolePersistence
-
checkRowLevelJpqlPolicySyntax
public List<String> checkRowLevelJpqlPolicySyntax(String entityName, String joinClause, String whereClause) - Specified by:
checkRowLevelJpqlPolicySyntax
in interfaceRolePersistence
-
checkRowLevelPredicatePolicySyntax
- Specified by:
checkRowLevelPredicatePolicySyntax
in interfaceRolePersistence
-