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

java.lang.Object
  extended by org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager
All Implemented Interfaces:
IBackingRepositoryLifecycleManager
Direct Known Subclasses:
DefaultBackingRepositoryLifecycleManager, PdiBackingRepositoryLifecycleManager

public abstract class AbstractBackingRepositoryLifecycleManager
extends Object
implements IBackingRepositoryLifecycleManager

Contains some common functionality.

Author:
mlowery

Constructor Summary
AbstractBackingRepositoryLifecycleManager(IRepositoryFileDao contentDao, IRepositoryFileAclDao repositoryFileAclDao, org.springframework.transaction.support.TransactionTemplate txnTemplate, String repositoryAdminUsername, String tenantAuthenticatedAuthorityNamePattern, String singleTenantAuthenticatedAuthorityName)
           
 
Method Summary
 void clearHasRun()
           
 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

AbstractBackingRepositoryLifecycleManager

public AbstractBackingRepositoryLifecycleManager(IRepositoryFileDao contentDao,
                                                 IRepositoryFileAclDao repositoryFileAclDao,
                                                 org.springframework.transaction.support.TransactionTemplate txnTemplate,
                                                 String repositoryAdminUsername,
                                                 String tenantAuthenticatedAuthorityNamePattern,
                                                 String singleTenantAuthenticatedAuthorityName)
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

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

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(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

clearHasRun

public void clearHasRun()