|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRole
Provides methods for management of users in a workspace role
| Method Summary | |
|---|---|
void |
addGroup(com.sap.security.api.IUser user,
com.sap.security.api.IGroup group)
Adds the specified group to the role |
void |
addUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToAdd)
Adds the specified user to the role |
void |
addUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToAdd,
String requestReason)
Adds the specified user to the role |
Collection |
getGroups()
Returns all groups in this role |
Collection |
getUsers()
Deprecated. Returns all users in this role - use getUsers(boolean recursive) instead |
Collection |
getUsers(boolean recursive)
Returns all users in the role |
boolean |
isUserInRole(com.sap.security.api.IPrincipal user)
Checks if the specified user is in the role |
void |
removeGroup(com.sap.security.api.IUser user,
com.sap.security.api.IGroup group)
Removes the specified group from the role |
void |
removeUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToRemove)
Removes the specified user from the role |
| Method Detail |
|---|
void addUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToAdd)
throws MemberListException
user - the performing user who has appropriate permissionsuserToAdd - the user to add to the role
MemberListException
void addUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToAdd,
String requestReason)
throws MemberListException
user - the performing user who has appropriate permissionsuserToAdd - the user to add to the rolerequestReason - the reason for requesting to join the workspace; optional, can be null
MemberListException
void removeUser(com.sap.security.api.IUser user,
com.sap.security.api.IUser userToRemove)
throws MemberListException
user - the performing user who has appropriate permissionsuserToRemove - the user to remove from the role
MemberListExceptionCollection getUsers()
Collection getUsers(boolean recursive)
recursive - if true, returns all users in the role, including members of the nested groups;
otherwise only users that are directly in the role
boolean isUserInRole(com.sap.security.api.IPrincipal user)
user - the user
void addGroup(com.sap.security.api.IUser user,
com.sap.security.api.IGroup group)
throws MemberListException
user - the performing user who has appropriate permissionsgroup - the group to add to the role
MemberListException
void removeGroup(com.sap.security.api.IUser user,
com.sap.security.api.IGroup group)
throws MemberListException
user - the performing user who has appropriate permissionsgroup - the group to remove from the role
MemberListExceptionCollection getGroups()
|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||