Class

An object which describes class-wide permissions.

An instance of this object is automatically created in the Realm for class in your schema, and should not be created manually.

Since: 2.3.0
class_name
Deprecated: Use name() instead.

The name of the class which these permissions apply to.

Type:
string
name

The name of the class which these permissions apply to.

Type:
string
permissions

The permissions for this class.

findOrCreate()

Finds the Class-level permissions associated with the named Role. If either the role or the permission object doesn't exist, it will be created.

If the Permission object is created because one didn't exist already, it will be created with all privileges disabled.

If the Role object is created because one didn't exist, it will be created with no members.