public final class ObjectPrivileges extends Object
Constructor and Description |
---|
ObjectPrivileges(long privileges) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete()
Returns whether or not the user can delete the object.
|
boolean |
canRead()
Returns whether or not the user can see/read the object.
|
boolean |
canSetPermissions()
Returns whether or not the user can change permissions on the object through its custom
permission field (A field of the type
RealmList<Permission> ). |
boolean |
canUpdate()
Returns whether or not the user can update fields on the object.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public boolean canRead()
true
if the user can read the object, false
if not.public boolean canUpdate()
canDelete()
nor if permissions can be updated (see
canSetPermissions()
).true
if the user can update fields on the object, false
if not.public boolean canDelete()
true
if the user can delete the object, false
if not.public boolean canSetPermissions()
RealmList<Permission>
).true
if the user can modify the permissions on the object, false
if not.