com.sap.workspaces.module.extension

Class AbstractPrincipalLifecycle

java.lang.Object
  extended by com.sap.workspaces.module.extension.AbstractPrincipalLifecycle
All Implemented Interfaces:
IWorkspacesService

public abstract class AbstractPrincipalLifecycle
extends Object
implements IWorkspacesService

Provides callback methods that are invoked when a principal (role, user or group) is added to or removed from the workspace in which the module is running.

Since:
1.1

Constructor Summary
AbstractPrincipalLifecycle()
           
 
Method Summary
abstract  void onAddPrincipal(PrincipalInfo principalInfo, IModuleContext moduleContext)
          Called when a principal is added to the workspace
abstract  void onRemovePrincipal(PrincipalInfo principalInfo, IModuleContext moduleContext)
          Called when a principal is removed from the workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPrincipalLifecycle

public AbstractPrincipalLifecycle()
Method Detail

onAddPrincipal

public abstract void onAddPrincipal(PrincipalInfo principalInfo,
                                    IModuleContext moduleContext)
Called when a principal is added to the workspace

Parameters:
principalInfo - contains the workspace role and ID of the principal
moduleContext - the module context

onRemovePrincipal

public abstract void onRemovePrincipal(PrincipalInfo principalInfo,
                                       IModuleContext moduleContext)
Called when a principal is removed from the workspace

Parameters:
principalInfo - contains the workspace role and ID of the principal
moduleContext - the module context


Copyright 2011 SAP AG Complete Copyright Notice