public interface IBackingRepositoryLifecycleManager
IUnifiedRepository
. This interface is for code that initializes any backing repository.
Methods in this class must be called by an external caller (see example below). A caller can get a reference to
the IBackingRepositoryLifecycleManager
usingPentahoSystem
. Methods should be able to be called
more than once with the same arguments with no adverse effects.
Example: When a servlet-based application starts up, a ServletContextListener
calls startup()
.
When a user logs in, #newTenant(String)
and #onNewUser(String)
are called. Finally, the
ServletContextListener
calls shutdown()
.
This class is necessary since some implementations cannot observe logins. Example: JCR cannot observe logins--only node and property events.
Modifier and Type | Method and Description |
---|---|
void |
addMetadataToRepository(String metadataProperty) |
Boolean |
doesMetadataExists(String metadataProperty) |
void |
newTenant()
To be called before any users belonging to the current tenant interact with the backing repository.
|
void |
newTenant(ITenant tenant)
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(ITenant tenant,
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.
|
void startup()
void shutdown()
void newTenant(ITenant tenant)
new
- Tenantvoid newTenant()
void newUser(ITenant tenant, String username)
username
interacts with the backing repository.tenant
- to which the user belongsusername
- new usernamevoid newUser()
void addMetadataToRepository(String metadataProperty)
Copyright © 2018 Hitachi Vantara. All rights reserved.