org.pentaho.platform.repository2.unified.lifecycle
Class DelegatingBackingRepositoryLifecycleManager

java.lang.Object
  extended by org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager
All Implemented Interfaces:
IBackingRepositoryLifecycleManager

public class DelegatingBackingRepositoryLifecycleManager
extends Object
implements IBackingRepositoryLifecycleManager

An IBackingRepositoryLifecycleManager that does nothing itself but instead delegates to an ordered collection of other IBackingRepositoryLifecycleManager instances.

Author:
mlowery

Constructor Summary
DelegatingBackingRepositoryLifecycleManager(List<IBackingRepositoryLifecycleManager> managers)
           
 
Method Summary
 void newTenant()
          To be called before any users belonging to the current tenant interact with the backing repository.
 void newTenant(String tenantId)
          To be called before any users belonging to a particular tenant interact with the backing repository.
 void newUser()
          To be called before current user interacts with the backing repository.
 void newUser(String tenantId, String username)
          To be called before user indicated by username interacts with the backing repository.
 void shutdown()
          To be called on repository shutdown.
 void startup()
          To be called before any (non-admin) users interact with the backing repository.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingBackingRepositoryLifecycleManager

public DelegatingBackingRepositoryLifecycleManager(List<IBackingRepositoryLifecycleManager> managers)
Method Detail

newTenant

public void newTenant()
Description copied from interface: IBackingRepositoryLifecycleManager
To be called before any users belonging to the current tenant interact with the backing repository.

Specified by:
newTenant in interface IBackingRepositoryLifecycleManager

newTenant

public void newTenant(String tenantId)
Description copied from interface: IBackingRepositoryLifecycleManager
To be called before any users belonging to a particular tenant interact with the backing repository.

Specified by:
newTenant in interface IBackingRepositoryLifecycleManager
Parameters:
tenantId - new tenant id

newUser

public void newUser()
Description copied from interface: IBackingRepositoryLifecycleManager
To be called before current user interacts with the backing repository.

Specified by:
newUser in interface IBackingRepositoryLifecycleManager

newUser

public void newUser(String tenantId,
                    String username)
Description copied from interface: IBackingRepositoryLifecycleManager
To be called before user indicated by username interacts with the backing repository.

Specified by:
newUser in interface IBackingRepositoryLifecycleManager
Parameters:
tenantId - tenant to which the user belongs
username - new username

shutdown

public void shutdown()
Description copied from interface: IBackingRepositoryLifecycleManager
To be called on repository shutdown.

Specified by:
shutdown in interface IBackingRepositoryLifecycleManager

startup

public void startup()
Description copied from interface: IBackingRepositoryLifecycleManager
To be called before any (non-admin) users interact with the backing repository.

Specified by:
startup in interface IBackingRepositoryLifecycleManager