AllowUpdateModelPermissionQuery 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.permissionDocumentModelPath.permission上のでリストが存在している場合、基本的にはホワイトリスト形式でパーミッションが指定されます。

firebase/firestore.rulesが存在している場合、Firestore用のルールを生成します。

permissionuserを指定して許可をする属性を指定できます。

Implemented types
Available Extensions

Constructors

AllowUpdateModelPermissionQuery.allUsers()
All users.
const
AllowUpdateModelPermissionQuery.authUsers()
Authenticated users.
const
AllowUpdateModelPermissionQuery.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
AllowUpdateModelPermissionQuery.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