Class BackingRepositoryLifecycleManagerAuthenticationSuccessListener
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.spring.BackingRepositoryLifecycleManagerAuthenticationSuccessListener
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener
,org.springframework.core.Ordered
public class BackingRepositoryLifecycleManagerAuthenticationSuccessListener extends Object implements org.springframework.context.ApplicationListener, org.springframework.core.Ordered
OrderedAuthenticationListener
that invokesIBackingRepositoryLifecycleManager.newTenant()
andIBackingRepositoryLifecycleManager.newUser()
. This listener fires either on interactive or non-interactive logins.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description BackingRepositoryLifecycleManagerAuthenticationSuccessListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager
getLifecycleManager()
int
getOrder()
org.pentaho.platform.api.engine.ISecurityHelper
getSecurityHelper()
void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
void
setLifecycleManager(org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager lifecycleManager)
Sets theIBackingRepositoryLifecycleManager
to be used by this instancevoid
setOrder(int order)
void
setSecurityHelper(org.pentaho.platform.api.engine.ISecurityHelper securityHelper)
Sets theISecurityHelper
to be used by this instance.
-
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
getLifecycleManager
public org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager getLifecycleManager()
- Returns:
- the
IBackingRepositoryLifecycleManager
that this instance will use. If none has been specified, it will default to getting the information from {@link PentahoSystem.get()}
-
setLifecycleManager
public void setLifecycleManager(org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager lifecycleManager)
Sets theIBackingRepositoryLifecycleManager
to be used by this instance- Parameters:
lifecycleManager
- the lifecycle manager to use (can not be null)
-
getSecurityHelper
public org.pentaho.platform.api.engine.ISecurityHelper getSecurityHelper()
- Returns:
- the
ISecurityHelper
used by this instance. If none has been specified, it will default to using theSecurityHelper
singleton.
-
setSecurityHelper
public void setSecurityHelper(org.pentaho.platform.api.engine.ISecurityHelper securityHelper)
Sets theISecurityHelper
to be used by this instance. This can not benull
- Parameters:
securityHelper
- theISecurityHelper
to be used by this instance
-
-