public class NCMBRole extends NCMBBase
mClassName, mFields, mIgnoreKeys, mUpdateKeys
Constructor and Description |
---|
NCMBRole()
Constructor
|
NCMBRole(java.lang.String name)
Constructor with role name
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.util.List<NCMBRole> roles)
add roles to role
|
void |
addRoleInBackground(java.util.List<NCMBRole> roles,
DoneCallback callback)
add roles to role asynchronously
|
void |
addUser(java.util.List<NCMBUser> users)
add users to role
|
void |
addUserInBackground(java.util.List<NCMBUser> users,
DoneCallback callback)
add users to role asynchronously
|
void |
createRole()
create role
|
void |
createRoleInBackground(DoneCallback callback)
create role asynchronously
|
void |
deleteObject()
delete role
|
void |
deleteObjectInBackground(DoneCallback callback) |
void |
fetchObject()
fetch role
|
void |
fetchObjectInBackground(FetchCallback callback)
fetch role asynchronously
|
static NCMBQuery<NCMBRole> |
getQuery()
Create query for role class
|
java.lang.String |
getRoleName()
Get role name
|
void |
removeRole(java.util.List<NCMBRole> roles)
remove roles to role
|
void |
removeRoleInBackground(java.util.List<NCMBRole> roles,
DoneCallback callback)
remove roles to role asynchronously
|
void |
removeUser(java.util.List<NCMBUser> users)
remove users to role
|
void |
removeUserInBackground(java.util.List<NCMBUser> users,
DoneCallback callback)
remove users to role asynchronously
|
void |
setRoleName(java.lang.String name)
set role name
|
allKeys, containsKey, createUpdateJsonData, getAcl, getBoolean, getClassName, getCreateDate, getDate, getDouble, getGeolocation, getIncludeObject, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getObjectId, getString, getUpdateDate, put, put, put, put, put, put, put, put, put, put, put, put, put, remove, setAcl, setAclFromInternal, setCreateDate, setObjectId, setUpdateDate
public NCMBRole()
public NCMBRole(java.lang.String name)
name
- String role namepublic static NCMBQuery<NCMBRole> getQuery()
public java.lang.String getRoleName()
public void setRoleName(java.lang.String name)
name
- String role namepublic void addUser(java.util.List<NCMBUser> users) throws NCMBException
users
- NCMBUser list to add roleNCMBException
- exception from NIFCLOUD mobile backendpublic void addUserInBackground(java.util.List<NCMBUser> users, DoneCallback callback)
users
- NCMBUser list to add rolecallback
- callback after add userpublic void removeUser(java.util.List<NCMBUser> users) throws NCMBException
users
- NCMBUser list to remove roleNCMBException
- exception from NIFCLOUD mobile backendpublic void removeUserInBackground(java.util.List<NCMBUser> users, DoneCallback callback)
users
- NCMBUser list to remove rolecallback
- callback after remove userpublic void addRole(java.util.List<NCMBRole> roles) throws NCMBException
roles
- NCMBRole list to add roleNCMBException
- exception from NIFCLOUD mobile backendpublic void addRoleInBackground(java.util.List<NCMBRole> roles, DoneCallback callback)
roles
- NCMBRoles list to add rolecallback
- callback after add rolepublic void removeRole(java.util.List<NCMBRole> roles) throws NCMBException
roles
- NCMBRole list to remove roleNCMBException
- exception from NIFCLOUD mobile backendpublic void removeRoleInBackground(java.util.List<NCMBRole> roles, DoneCallback callback)
roles
- NCMBRoles list to remove rolecallback
- callback after remove rolepublic void createRole() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void createRoleInBackground(DoneCallback callback)
callback
- callback after create rolepublic void fetchObject() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void fetchObjectInBackground(FetchCallback callback)
callback
- callback after fetch rolespublic void deleteObject() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void deleteObjectInBackground(DoneCallback callback) throws NCMBException
NCMBException