PermissionHandler class
Constructors
- PermissionHandler()
-
Singleton Block
factory
Properties
-
defaultRules
↔ Map<
DbOperationType, bool> -
Default Rule For All Fields by Operation Type
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- permissionChecker ↔ PermissionChecker
-
Permission Checker
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
Query query) → Future< bool?> -
fillAllRules(
{bool rule = false}) → void - Deny
-
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
Static Methods
-
checkByFixedFields(
List< String> fields, Map<String, dynamic> resource, Map<String, dynamic> request) → bool - Only Use Update Operation
-
checkIncrementLimit(
String field, Map< String, dynamic> request, {num? min, num? max}) → bool -
Increment Limit
If
min
ormax
isnull
don't control and return true -
parseField(
String field) → String - Parser for field name components.AY85swGc.vote to components.{}.vote
-
resource(
Query query) → Future< Map< String, dynamic> ?> - Resource