EntityPermissionPolicy class abstract

Defines a policy to determine if a user has the authorization to perform an operation on an entity.

Refer to the subclasses like SearchPolicy for an easier and better understanding of the concept presented by this abstract class.

Inheritance
Implementers

Constructors

EntityPermissionPolicy(String permission, bool filterByTenant)
const

Properties

filterByTenant bool
whether to allow the user to perform the action on entities other than those strictly belonging to the same tenant.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
permission String
the permission that will allow the user to perform the operation on an entity.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

actionToDemandOnPrincipal(DbPrincipal principal) String
determines which share with which action the user must have on the entity in order to be able to permform the operation on the entity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited