Realm

A singleton object which describes Realm-wide permissions.

An object of this type is automatically created in the Realm for you, and more objects cannot be created manually.

Since: 2.3.0
permissions

The permissions for the Realm.

findOrCreate()

Finds the Realm-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.