Class 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 invokes IBackingRepositoryLifecycleManager.newTenant() and IBackingRepositoryLifecycleManager.newUser(). This listener fires either on interactive or non-interactive logins.
    Author:
    mlowery
    • Constructor Detail

      • BackingRepositoryLifecycleManagerAuthenticationSuccessListener

        public BackingRepositoryLifecycleManagerAuthenticationSuccessListener()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.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 the IBackingRepositoryLifecycleManager 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 the SecurityHelper singleton.
      • setSecurityHelper

        public void setSecurityHelper​(org.pentaho.platform.api.engine.ISecurityHelper securityHelper)
        Sets the ISecurityHelper to be used by this instance. This can not be null
        Parameters:
        securityHelper - the ISecurityHelper to be used by this instance