LCRole class

LeanCloud Role, a group of users for the purposes of granting permissions.

Role is specified by their sets of child LCUsers and child LCRoles, all of which are granted any permissions that the parent role has.

Inheritance

Constructors

LCRole()

Properties

acl LCACL?
Gets the ACL for this object.
getter/setter pairinherited
className String?
The class name of the object.
no setterinherited
createdAt DateTime?
Gets the object's createdAt attribute.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
objectId String?
Gets the object's objectId.
no setterinherited
roles LCRelation<LCObject>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
Gets the object's updatedAt attribute.
no setterinherited
users LCRelation<LCObject>
no setter

Methods

add(String key, dynamic value) → void
Atomically add value to the end of the array key.
inherited
addAll(String key, Iterable values) → void
Atomically add values to the end of the array key.
inherited
addAllUnique(String key, Iterable values) → void
Atomically add values to the array key, only if not already present.
inherited
addRelation(String key, LCObject value) → void
Adds a relation value to key.
inherited
addUnique(String key, dynamic value) → void
Atomically add value to the array key, only if not already present.
inherited
decrement(String key, num amount) → void
Atomically decrements the value of the given key with amount.
inherited
delete() Future
Deletes this object.
inherited
fetch({Iterable<String>? keys, Iterable<String>? includes}) Future<LCObject>
Fetches the object from the cloud.
inherited
increment(String key, num amount) → void
Atomically increments the value of the given key with amount.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key, dynamic value) → void
Atomically remove all value from the array key.
inherited
removeAll(String key, Iterable values) → void
Atomically remove all values from the array key.
inherited
removeRelation(String key, LCObject value) → void
Removes relation value to key.
inherited
save({bool fetchWhenSave = false, LCQuery<LCObject>? query}) Future<LCObject>
Saves the object to the cloud.
inherited
toString() String
Serializes this LCObject to a JSON string.
inherited
unset(String key) → void
Removes the key.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → dynamic
Gets the value of key.
inherited
operator []=(String key, dynamic value) → void
Sets key to value.
inherited

Static Methods

create(String name, LCACL acl) LCRole
Creates a role.
getQuery() LCQuery<LCRole>
Constructs a LCQuery for this role.

Constants

ClassName → const String