DVModelPageAccess class
The policy questions a generated model page asks. The framework's, not an application's: the generated page and the page resolver ask them, and an application answers them by writing the model's policy.
Constructors
- DVModelPageAccess()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
mayView(
String model, Object? viewer, Object? record, {bool personal = false, bool declaredViewPolicy = false}) → Future< bool> -
Whether
viewermay haverecord's page at all. A refusal is answered as a record that does not exist -- 404, never 403 -- so a page cannot be used to learn that a record is there. -
mayViewProtected(
String model, Object? viewer, Object? record) → Future< bool> -
Whether
viewermay seerecord's protected fields: its@DVModel.sensitiveField()s and the fields naming its privacy subject. -
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