public class RealmPermissions extends RealmObject
ClassPermissions
or object level permissions.Constructor and Description |
---|
RealmPermissions() |
Modifier and Type | Method and Description |
---|---|
Permission |
findOrCreate(String roleName)
Finds the permissions associated with a given
Role . |
RealmList<Permission> |
getPermissions()
Returns all Realm level permissions, i.e.
|
addChangeListener, addChangeListener, addChangeListener, addChangeListener, asChangesetObservable, asChangesetObservable, asFlowable, asFlowable, deleteFromRealm, deleteFromRealm, getRealm, getRealm, isLoaded, isLoaded, isManaged, isManaged, isValid, isValid, load, load, removeAllChangeListeners, removeAllChangeListeners, removeChangeListener, removeChangeListener, removeChangeListener, removeChangeListener
public RealmList<Permission> getPermissions()
public Permission findOrCreate(String roleName)
Role
. If either the role or the permission
object doesn't exists, 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 Role
object is created because one didn't exists, it will be created
with no members.
roleName
- name of the role to find.IllegalStateException
- if this object is not managed by Realm.IllegalStateException
- if this method is not called inside a write transaction.IllegalArgumentException
- if a null
or empty