com.sap.workspaces.workspace

Class AbstractApprovalRequest

java.lang.Object
  extended by com.sap.workspaces.workspace.AbstractApprovalRequest
All Implemented Interfaces:
IWorkspacesService

public abstract class AbstractApprovalRequest
extends Object
implements IWorkspacesService

Extend this class to implement approval of a newly created workspace

Since:
1.1

Constructor Summary
AbstractApprovalRequest()
           
 
Method Summary
abstract  boolean canApprove(com.sap.security.api.IUser user, com.sap.security.api.IUser approver)
          Verifies that the approver is authorized to approve the request
abstract  boolean needApproval(com.sap.security.api.IUser user)
          Checks whether the specified user needs approval for creating a shared workspace
abstract  void requestApproval(com.sap.security.api.IUser user, IWorkspace workspace)
          Requests approval of a newly created shared workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractApprovalRequest

public AbstractApprovalRequest()
Method Detail

requestApproval

public abstract void requestApproval(com.sap.security.api.IUser user,
                                     IWorkspace workspace)
Requests approval of a newly created shared workspace

Parameters:
user - the current user
workspace - the newly created workspace

canApprove

public abstract boolean canApprove(com.sap.security.api.IUser user,
                                   com.sap.security.api.IUser approver)
Verifies that the approver is authorized to approve the request

Parameters:
user - the current user requesting approval
approver - the approver of request
Returns:
A Boolean value indicating whether the approver is authorized to approve the request

needApproval

public abstract boolean needApproval(com.sap.security.api.IUser user)
Checks whether the specified user needs approval for creating a shared workspace

Parameters:
user - the user
Returns:
True, if the user needs approval


Copyright 2011 SAP AG Complete Copyright Notice