|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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 | |
boolean |
addGroupUsersToRole(IGroup group,
IRoomRole role,
boolean childMembers)
Assign all users who are member of a given group to a specific room role. |
boolean |
addGroupUsersToRoles(IGroup group,
IRoomRole[] roles,
boolean childMembers)
Assign all users who are member of a given group to a a set of room roles. |
IUserRoles |
addUserRole(String userId,
IRoomRole role)
Assign a new role to a user. |
boolean |
addUserRoles(IRoomUsers refUsers)
Copy all user-role assignments from another IRoomUsers object to this object. |
IUserRoles |
addUserRoles(String userId,
IRoomRole[] roles)
Assign multiple roles to a user. |
boolean |
containsUser(String userId)
Check if a user is contained |
boolean |
deleteAllUsers()
Remove all users from all roles in this snapshot |
boolean |
deleteUser(String userId)
Remove a specific user from all roles in this snapshot |
boolean |
deleteUserRoles(String userId)
Same as deleteUser(String): Remove a specific
user from all roles in this snapshot |
String[] |
getAllUsers()
Get the ids of all users |
IRoomRole[] |
getUserRoles(String userId)
Get all roles a specific user is assigned to |
IUserRoles |
getUserRolesObject(String userId)
Get a specific user and all assigned roles to the user |
boolean |
hasUserRole(String userId,
IRoomRole role)
Check if a user is assigned to a specific role |
boolean |
removeUserRole(String userId,
IRoomRole role)
Remove a specific role from a user |
| Method Detail |
public String[] getAllUsers()
public boolean containsUser(String userId)
userId - the id of the user
public IUserRoles getUserRolesObject(String userId)
userId - the id of the user
public IRoomRole[] getUserRoles(String userId)
userId - the id of the user
public boolean hasUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role object
public IUserRoles addUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role object
public IUserRoles addUserRoles(String userId,
IRoomRole[] roles)
userId - the id of the userroles - Array containing the new roles for the user
public boolean addGroupUsersToRole(IGroup group,
IRoomRole role,
boolean childMembers)
group - the user grouprole - the role objectchildMembers - false means only direct members of the group are assigned
public boolean addGroupUsersToRoles(IGroup group,
IRoomRole[] roles,
boolean childMembers)
group - the user grouproles - Array containing the roles for the group userschildMembers - false means only direct members of the group are assigned
public boolean addUserRoles(IRoomUsers refUsers)
refUsers - the IRoomUsers object containing the room-role
assignments to be copiedpublic boolean deleteAllUsers()
public boolean deleteUser(String userId)
userId - the id of the user to be removed
public boolean deleteUserRoles(String userId)
deleteUser(String): Remove a specific
user from all roles in this snapshot
userId - the id of the user to be removed
public boolean removeUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role to be removed from the user
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||