|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMemberList
Provides tools for accessing workspace members
| Method Summary | |
|---|---|
void |
changeRole(com.sap.security.api.IUser user,
com.sap.security.api.IPrincipal principal,
WorkspaceRole currentRole,
WorkspaceRole newRole)
Changes the workspace role (PENDING/MEMBER/MANAGER) of a principal (user or group) Enables the following scenarios: Approve pending request and add as managers: currentRole: WorkspaceRole.PENDING newRole: WorkspaceRole.MANAGER Approve pending request and add as members: currentRole: WorkspaceRole.PENDING newRole: WorkspaceRole.MEMBER Reject Pending request: currentRole: WorkspaceRole.PENDING newRole: null Change from manager to members: currentRole: WorkspaceRole.MANAGER newRole: WorkspaceRole.MEMBER Change from member to manager: currentRole: WorkspaceRole.MEMBER newRole: WorkspaceRole.MANAGER |
com.sap.security.api.IUser |
getOwner()
Returns the workspace owner, or null if the owner does not exist |
IRole |
getRole(WorkspaceRole workspaceRole)
Returns a workspace role of the specified type |
boolean |
isManager(com.sap.security.api.IUser user)
Checks if the specified user is a manager in this workspace |
void |
setOwner(com.sap.security.api.IUser user,
com.sap.security.api.IUser newOwner)
Assigns workspace ownership |
| Method Detail |
|---|
IRole getRole(WorkspaceRole workspaceRole)
workspaceRole - a workspace role type, such as MEMBER or MANAGER
com.sap.security.api.IUser getOwner()
void setOwner(com.sap.security.api.IUser user,
com.sap.security.api.IUser newOwner)
throws MemberListException
user - the performing user who has appropriate permissionsnewOwner - the user to whom the workspace ownership is assigned
MemberListException - if the performing user does not have the appropriate permissionboolean isManager(com.sap.security.api.IUser user)
user - the user
void changeRole(com.sap.security.api.IUser user,
com.sap.security.api.IPrincipal principal,
WorkspaceRole currentRole,
WorkspaceRole newRole)
throws WorkspacesRuntimeException
user - the workspace manager or ownerprincipal - the principalcurrentRole - the current rolenewRole - the new role
WorkspacesRuntimeException
|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||