public class ClassPermissions extends RealmObject
If a class level permission grants a privilege, it is still possible for individual objects to revoke them again, i.e. it is possible for the class level permission to grant general read access, while the individual objects are still able to revoke them.
The opposite is not true, so if a privilege is not granted at the class level, it can never be granted at the object level, no matter what kind of permissions are set there.
Constructor and Description |
---|
ClassPermissions() |
ClassPermissions(Class<? extends RealmModel> clazz)
Creates permissions for the given Realm model class.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the class these permissions apply to.
|
RealmList<Permission> |
getPermissions()
Returns all Class level permissions for the class defined by
getName() . |
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 ClassPermissions()
public ClassPermissions(Class<? extends RealmModel> clazz)
ClassPermissions
object
can exist pr Realm model class.clazz
- class to create permissions.public String getName()
public RealmList<Permission> getPermissions()
getName()
. This is the
default set of permissions for the class unless otherwise re-defined by object level
permissions.