Class InheritableThreadLocalPentahoSessionHolderStrategy

    • Constructor Detail

      • InheritableThreadLocalPentahoSessionHolderStrategy

        public InheritableThreadLocalPentahoSessionHolderStrategy()
    • Method Detail

      • setSession

        public void setSession​(org.pentaho.platform.api.engine.IPentahoSession session)
        Sets an IPentahoSession for the current thread
        Specified by:
        setSession in interface IPentahoSessionHolderStrategy
        session -
      • getSession

        public org.pentaho.platform.api.engine.IPentahoSession getSession()
        Returns the IPentahoSession for the current thread
        Specified by:
        getSession in interface IPentahoSessionHolderStrategy
        thread session
      • removeSession

        public void removeSession()
        Removes the IPentahoSession for the current thread. It is important that the framework calls this to prevent session bleed- through between requests as threads are re-used by the server.
        Specified by:
        removeSession in interface IPentahoSessionHolderStrategy