Examples of PentahoSessionParameterProvider


Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

      logger.debug( "received InteractiveAuthenticationSuccessEvent" ); //$NON-NLS-1$
      logger.debug( "calling PentahoSystem.sessionStartup" ); //$NON-NLS-1$
      try {
        IPentahoSession pentahoSession = PentahoSessionHolder.getSession();
        Assert.notNull( pentahoSession, "PentahoSessionHolder doesn't have a session" );
        IParameterProvider sessionParameters = new PentahoSessionParameterProvider( pentahoSession );
        PentahoSystem.sessionStartup( pentahoSession, sessionParameters );
      } catch ( Exception e ) {
        logger.error( e.getLocalizedMessage(), e );
      }
    }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

    super( userName, session.getId(), locale );

    this.session = session;

    // run any session initialization actions
    IParameterProvider sessionParameters = new PentahoSessionParameterProvider( userSession );
    PentahoSystem.sessionStartup( this, sessionParameters );
  }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

  public void test1() {

    StandaloneSession session = new StandaloneSession( "test name" );

    PentahoSessionParameterProvider params = new PentahoSessionParameterProvider( session );

    session.setAttribute( "param1", "value1" );

    assertEquals( "Wrong param value", "test name", params.getParameter( "name" ) );
    assertEquals( "Wrong param value", "value1", params.getParameter( "param1" ) );
    assertEquals( "Wrong param value", "value1", params.getStringParameter( "param1", null ) );
    assertEquals( "Wrong param value", null, params.getStringParameter( "bogus", null ) );

  }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

    // see if we are supposed to proxy the session
    IPentahoSession session = getSession();
    if ( subAction.getSessionProxy() != ActionInputConstant.NULL_INPUT ) {
      String sessionName = subAction.getSessionProxy().getStringValue();
      // TODO support user-by-user locales
      PentahoSessionParameterProvider params = new PentahoSessionParameterProvider( session );
      session = new UserSession( sessionName, LocaleHelper.getLocale(), params );
    }

    // create a parameter provider
    HashMap<String, Object> parameters = new HashMap<String, Object>();
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

      ArrayList messages = new ArrayList();

      HashMap<String, Object> parameterProviders = new HashMap<String, Object>();
      parameterProviders.put( IParameterProvider.SCOPE_REQUEST, new SimpleParameterProvider( xActionInputParams ) );
      parameterProviders.put( IParameterProvider.SCOPE_SESSION, new PentahoSessionParameterProvider(
          PentahoSessionHolder.getSession() ) );
      String xactionPath = null;
      if ( xactionDefInputStream instanceof RepositoryFileInputStream ) {
        xactionPath = ( (RepositoryFileInputStream) xactionDefInputStream ).getFile().getPath();
      }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.PentahoSessionParameterProvider

        solutionEngine.init( session );

        String baseUrl = ""; //$NON-NLS-1$
        HashMap parameterProviderMap = new HashMap();
        if ( sessionParameters == null ) {
          sessionParameters = new PentahoSessionParameterProvider( session );
        }

        parameterProviderMap.put( SCOPE_SESSION, sessionParameters );

        IPentahoUrlFactory urlFactory = new SimpleUrlFactory( baseUrl );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.