|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRoomUsers
Interface describing a snapshot of the current user-role assignments in a
room.
This interface should not be used directly.
Please use IRoomPrincipals instead
| Method Summary | |
|---|---|
boolean |
addGroupUsersToRole(com.sap.security.api.IGroup group,
IRoomRole role,
boolean childMembers)
Assign all users who are member of a given group to a specific room role. |
boolean |
addGroupUsersToRoles(com.sap.security.api.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 |
|---|
String[] getAllUsers()
boolean containsUser(String userId)
userId - the id of the user
IUserRoles getUserRolesObject(String userId)
userId - the id of the user
IRoomRole[] getUserRoles(String userId)
userId - the id of the user
boolean hasUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role object
IUserRoles addUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role object
IUserRoles addUserRoles(String userId,
IRoomRole[] roles)
userId - the id of the userroles - Array containing the new roles for the user
boolean addGroupUsersToRole(com.sap.security.api.IGroup group,
IRoomRole role,
boolean childMembers)
group - the user grouprole - the role objectchildMembers - false means only direct members of the group are assigned
boolean addGroupUsersToRoles(com.sap.security.api.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
boolean addUserRoles(IRoomUsers refUsers)
refUsers - the IRoomUsers object containing the room-role
assignments to be copiedboolean deleteAllUsers()
boolean deleteUser(String userId)
userId - the id of the user to be removed
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
boolean removeUserRole(String userId,
IRoomRole role)
userId - the id of the userrole - the role to be removed from the user
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/room
|
api
|
EP-KM-CRS
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||