PermissionPolicy 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.

Implementers

Constructors

PermissionPolicy(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.
final
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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