Interface PersistPermissionService

All Known Implementing Classes:
PersistPermissionServiceImpl

public interface PersistPermissionService
  • Method Details

    • hasEntityManagerPermission

      boolean hasEntityManagerPermission(String entityModel, String... permissions)
      Returns true if all specified permissions are granted to the current user for the specified entity model.
      Parameters:
      entityModel - the entity model
      permissions - the permission to check
      Returns:
      true if granted, false otherwise
    • hasEntityManagerPermission

      boolean hasEntityManagerPermission(String entityModel, Permission... permissions)
    • hasEntityPermission

      boolean hasEntityPermission(String entityModel, String primaryKey, String... permissions)
      Checks the all specified permissions against the current user and the specified entity.
      Parameters:
      entityModel - the entity model
      primaryKey - a primary key that identifies an existing entity
      permissions - the permissions to check
      Returns:
      true, if all specified permissions are granted