Interface PersistPermissionService
- All Known Implementing Classes:
PersistPermissionServiceImpl
public interface PersistPermissionService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasEntityManagerPermission
(String entityModel, Permission... permissions) boolean
hasEntityManagerPermission
(String entityModel, String... permissions) Returns true if all specified permissions are granted to the current user for the specified entity model.boolean
hasEntityPermission
(String entityModel, String primaryKey, String... permissions) Checks the all specified permissions against the current user and the specified entity.
-
Method Details
-
hasEntityManagerPermission
Returns true if all specified permissions are granted to the current user for the specified entity model.- Parameters:
entityModel
- the entity modelpermissions
- the permission to check- Returns:
- true if granted, false otherwise
-
hasEntityManagerPermission
-
hasEntityPermission
Checks the all specified permissions against the current user and the specified entity.- Parameters:
entityModel
- the entity modelprimaryKey
- a primary key that identifies an existing entitypermissions
- the permissions to check- Returns:
- true, if all specified permissions are granted
-