public final class RealmPrivileges extends Object
Constructor and Description |
---|
RealmPrivileges(long privileges) |
Modifier and Type | Method and Description |
---|---|
boolean |
canModifySchema()
Returns whether or not the user can modify the schema of the given resource.
|
boolean |
canRead()
Returns whether or not can see this Realm.
|
boolean |
canSetPermissions()
Returns whether or not the user can change
RealmPermissions . |
boolean |
canUpdate()
Returns whether or not the user can update Realm objects.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public boolean canRead()
true
, the user is allowed to read all
objects and classes from the Realm. If false
, the Realm will appear completely empty
(including having no schema), effectively making it inaccessible.true
if the user can see the Realm, false
if not.public boolean canUpdate()
true
, the user is
allowed to update properties on all objects in the Realm. This does not include updating
permissions nor creating or deleting objects. If false
, the Realm is effectively
read-only.
This property also in part control if schema updates are possible. If this returns
false
, the user is not allowed to update the schema, if true
, schema updates
are allowed if canModifySchema()
also returns true
.
true
if the user can update this Realm, false
if not.public boolean canSetPermissions()
RealmPermissions
. See this class for
further information.true
if the user can modify the RealmPermissions
object,
false
if not.RealmPermissions
public boolean canModifySchema()
true
the user is allowed to create classes in the Realm.
true
, the user is allowed to add properties to the given class.
true
if the user can modify the schema of the given resource, false
if not.