Class AdminPermissionDaoImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.security.dao.AdminPermissionDaoImpl
- All Implemented Interfaces:
AdminPermissionDao
@Repository("blAdminPermissionDao")
public class AdminPermissionDaoImpl
extends Object
implements AdminPermissionDao
- Author:
- jfischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAdminPermission(AdminPermission permission) booleandoesOperationExistForCeilingEntity(PermissionType permissionType, String ceilingEntityFullyQualifiedName) booleanisUserQualifiedForOperationOnCeilingEntity(AdminUser adminUser, PermissionType permissionType, String ceilingEntityFullyQualifiedName) booleanisUserQualifiedForOperationOnCeilingEntityViaDefaultPermissions(String ceilingEntityFullyQualifiedName) readAdminPermissionByNameAndType(String name, String type) saveAdminPermission(AdminPermission permission)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
AdminPermissionDaoImpl
public AdminPermissionDaoImpl()
-
-
Method Details
-
deleteAdminPermission
- Specified by:
deleteAdminPermissionin interfaceAdminPermissionDao
-
readAdminPermissionById
- Specified by:
readAdminPermissionByIdin interfaceAdminPermissionDao
-
readAdminPermissionByNameAndType
- Specified by:
readAdminPermissionByNameAndTypein interfaceAdminPermissionDao
-
readAdminPermissionByName
- Specified by:
readAdminPermissionByNamein interfaceAdminPermissionDao
-
saveAdminPermission
- Specified by:
saveAdminPermissionin interfaceAdminPermissionDao
-
readAllAdminPermissions
- Specified by:
readAllAdminPermissionsin interfaceAdminPermissionDao
-
isUserQualifiedForOperationOnCeilingEntity
public boolean isUserQualifiedForOperationOnCeilingEntity(AdminUser adminUser, PermissionType permissionType, String ceilingEntityFullyQualifiedName) - Specified by:
isUserQualifiedForOperationOnCeilingEntityin interfaceAdminPermissionDao
-
isUserQualifiedForOperationOnCeilingEntityViaDefaultPermissions
public boolean isUserQualifiedForOperationOnCeilingEntityViaDefaultPermissions(String ceilingEntityFullyQualifiedName) - Specified by:
isUserQualifiedForOperationOnCeilingEntityViaDefaultPermissionsin interfaceAdminPermissionDao
-
doesOperationExistForCeilingEntity
public boolean doesOperationExistForCeilingEntity(PermissionType permissionType, String ceilingEntityFullyQualifiedName) - Specified by:
doesOperationExistForCeilingEntityin interfaceAdminPermissionDao
-