public class PermissionOffer extends RealmObject
SyncUser
's management Realm.Constructor and Description |
---|
PermissionOffer() |
PermissionOffer(String url,
boolean mayRead,
boolean mayWrite,
boolean mayManage,
Date expiresAt)
Construct a permission offer object used to offer permission changes to other users.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt() |
Date |
getExpiresAt() |
String |
getId() |
String |
getRealmUrl() |
Integer |
getStatusCode()
Returns the status code for this change.
|
String |
getStatusMessage() |
String |
getToken() |
Date |
getUpdatedAt() |
boolean |
isMayManage() |
boolean |
isMayRead() |
boolean |
isMayWrite() |
boolean |
isSuccessful()
Check if the request was successfully handled by the Realm Object Server.
|
addChangeListener, addChangeListener, addChangeListener, addChangeListener, asObservable, asObservable, deleteFromRealm, deleteFromRealm, isLoaded, isLoaded, isManaged, isManaged, isValid, isValid, load, load, removeAllChangeListeners, removeAllChangeListeners, removeChangeListener, removeChangeListener, removeChangeListener, removeChangeListener, removeChangeListeners, removeChangeListeners
public PermissionOffer()
public PermissionOffer(String url, boolean mayRead, boolean mayWrite, boolean mayManage, Date expiresAt)
url
- The URL to the Realm on which to apply these permission changes to, once the offer is accepted.mayRead
- Grant or revoke read access.mayWrite
- Grant or revoked read-write access.mayManage
- Grant or revoke administrative access.expiresAt
- When this token will expire and become invalid. Pass null
if this offer should not expire.public String getId()
public Date getCreatedAt()
public Date getUpdatedAt()
public Integer getStatusCode()
null
if not yet processed. 0
if successful, >0
if an error happened. See getStatusMessage()
.public boolean isSuccessful()
true
if request was handled successfully. false
if not. See getStatusMessage()
for the full error message.public String getStatusMessage()
public String getToken()
public String getRealmUrl()
public boolean isMayRead()
public boolean isMayWrite()
public boolean isMayManage()
public Date getExpiresAt()