ParseACL class

ParseACL is used to control which users can access or modify a particular object ParseObject can have its own ParseACL You can grant read and write permissions separately to specific users or you can grant permissions to "the public" so that, for example, any user could read a particular object but only a particular set of users could write to that object

Constructors

ParseACL({ParseUser? owner})
Creates an ACL where only the provided user has access. owner The only user that can read or write objects governed by this ACL.

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

fromJson(Map<String, dynamic> map) ParseACL
getPublicReadAccess() bool
Get whether the public is allowed to read this object.
getPublicWriteAccess() bool
Set whether the public is allowed to write this object.
getReadAccess({required String userId}) bool
Get whether the given user id is explicitly allowed to read this object. Even if this returns false, the user may still be able to access it if getPublicReadAccess returns true or a role that the user belongs to has read access.
getWriteAccess({required String userId}) bool
Get whether the given user id is explicitly allowed to write this object. Even if this returns false, the user may still be able to write it if getPublicWriteAccess returns true or a role that the user belongs to has write access.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPublicReadAccess({required bool allowed}) → void
Set whether the public is allowed to read this object.
setPublicWriteAccess({required bool allowed}) → void
Set whether the public is allowed to write this object.
setReadAccess({required String userId, bool allowed = true}) → void
Set whether the given user id is allowed to read this object.
setWriteAccess({required String userId, bool allowed = true}) → void
Set whether the given user id is allowed to write this object.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited