AllowCreateModelPermissionQuery class
Define a query to validate data permissions.
If a list exists on CollectionModelPath.permission or DocumentModelPath.permission, permissions are basically specified in white list format.
If firebase/firestore.rules
exists, generate rules for Firestore.
データのパーミッションを検証するクエリを定義します。
CollectionModelPath.permissionやDocumentModelPath.permission上のでリストが存在している場合、基本的にはホワイトリスト形式でパーミッションが指定されます。
firebase/firestore.rules
が存在している場合、Firestore用のルールを生成します。
permissionやuserを指定して許可をする属性を指定できます。
- Implemented types
Constructors
- AllowCreateModelPermissionQuery.allUsers()
-
All users.
const
- AllowCreateModelPermissionQuery.authUsers()
-
Authenticated users.
const
- AllowCreateModelPermissionQuery.userFromData([String? key])
-
An authenticated user whose user ID matches the value of a field with
key
in the document to be read or written and the user ID authenticated on the app.const - AllowCreateModelPermissionQuery.userFromPath([String? key])
-
An authenticated user whose user ID matches the dynamic value specified by
:key
in the document or collection path and the user ID authenticated on the app.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Object?
-
Specify the target key to be used in ModelPermissionQueryUserType.
final
- permission → ModelPermissionQueryType
-
Specifies the permission type for validation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → ModelPermissionQueryUserType
-
Specify the target user for which you want to specify ModelPermissionQueryType.
final
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