public class Permission extends RealmObject
Permissions can be changed by users with administrative rights using the PermissionManager
.
SyncUser.getPermissionManager()
Constructor and Description |
---|
Permission()
Required by Realm.
|
Modifier and Type | Method and Description |
---|---|
String |
getPath()
Returns the path to the Realm on the server effected by this permission.
|
Date |
getUpdatedAt()
Returns the timestamp for when this permission object was last updated.
|
String |
getUserId()
Returns the
SyncUser.getIdentity() of the user effected by this permission.˚ |
boolean |
mayManage()
Checks whether or not the user defined by this permission is allowed to manage access to the Realm defined
by
getPath() . |
boolean |
mayRead()
Checks whether or not the user defined by this permission is allowed to read the Realm defined by
getPath() . |
boolean |
mayWrite()
Checks whether or not the user defined by this permission is allowed to write to the Realm defined by
getPath() . |
String |
toString() |
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 String getUserId()
SyncUser.getIdentity()
of the user effected by this permission.˚
public String getPath()
public boolean mayRead()
getPath()
.true
if this permission grant read permissions to the Realm, false
if not.public boolean mayWrite()
getPath()
.true
if this permission grant write permissions to the Realm, false
if not.public boolean mayManage()
getPath()
. Having this permission enable those users to add or remove permissions from
other users, including the one who granted it.true
if this permission grant administrative rights to the Realm, false
if not.public Date getUpdatedAt()