|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface describing a snapshot of the current user-role assignments in a room.
To create a new instance of IRoomUsers (containing no users or roles) you may
call IRoomsSystem.createRoomUsersObject()
To obtain a snapshot of all user-role assignments in an existing room call
IRoom.getRoomUsers()
You can modify such an instance of IRoomUsers using this API and then put it
back into any existing room by calling
IRoom.setRoomUsers(IRoomUsers, boolean).
This will apply any changes you did on the IRoomUsers object (add new users,
change user roles or remove users) to the room.
Note: Adding new users to a room will result in an invitation email to the
new users. Removed users will also get a notification email.
Important: All calls to changing methods in this interface will change only
the snapshot in memory. No existing room is affected until
IRoom.setRoomUsers(IRoomUsers, boolean)
is called.
| Method Summary | |
IUserRoles |
addUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
Assign a new role to a user. |
void |
addUserRoles(IRoomUsers refUsers)
|
IUserRoles |
addUserRoles(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole[] roles)
Assign multiple roles to a user. |
boolean |
containsUser(java.lang.String userId)
Check if a user is contained |
boolean |
deleteAllUsers()
Remove all users from all roles in this snapshot |
boolean |
deleteUser(java.lang.String userId)
Remove a specific user from all roles in this snapshot |
boolean |
deleteUserRoles(java.lang.String userId)
Same as deleteUser(String): Remove a specific
user from all roles in this snapshot |
java.lang.String[] |
getAllUsers()
Get the ids of all users |
com.sap.ip.collaboration.room.api.template.IRoomRole[] |
getUserRoles(java.lang.String userId)
Get all roles a specific user is assigned to |
IUserRoles |
getUserRolesObject(java.lang.String userId)
Get a specific user and all assigned roles to the user |
boolean |
hasUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
Check if a user is assigned to a specific role |
boolean |
removeUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
Remove a specific role from a user |
| Method Detail |
public java.lang.String[] getAllUsers()
public boolean containsUser(java.lang.String userId)
userId - the id of the userpublic IUserRoles getUserRolesObject(java.lang.String userId)
userId - the id of the userpublic com.sap.ip.collaboration.room.api.template.IRoomRole[] getUserRoles(java.lang.String userId)
userId - the id of the user
public boolean hasUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
userId - the id of the userrole - the role object
public IUserRoles addUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
userId - the id of the userrole - the role object
public IUserRoles addUserRoles(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole[] roles)
userId - the id of the userroles - Array containing the new roles for the userpublic void addUserRoles(IRoomUsers refUsers)
public boolean deleteAllUsers()
public boolean deleteUser(java.lang.String userId)
userId - the id of the user to be removedpublic boolean deleteUserRoles(java.lang.String userId)
deleteUser(String): Remove a specific
user from all roles in this snapshotuserId - the id of the user to be removed
public boolean removeUserRole(java.lang.String userId,
com.sap.ip.collaboration.room.api.template.IRoomRole role)
userId - the id of the userrole - the role to be removed from the user
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||