Package org.pentaho.commons.connection

Examples of org.pentaho.commons.connection.IPentahoStreamSource


  public String replaceParameterReferences( final String inputString ) {
    return runtimeContext.applyInputsToFormat( inputString, parameterResolver );
  }

  public IPentahoStreamSource getDataSource( final IActionResource actionResource ) throws FileNotFoundException {
    IPentahoStreamSource dataSrc = null;
    IActionSequenceResource resource = runtimeContext.getResourceDefintion( actionResource.getName() );
    if ( resource != null ) {
      dataSrc = runtimeContext.getResourceDataSource( resource );
    }
    return dataSrc;
View Full Code Here


      execListener.validated( this );
    }
  }

  public IPentahoStreamSource getDataSource( final String parameterName ) {
    IPentahoStreamSource dataSource = null;

    // TODO Temp workaround for content repos bug
    IActionParameter actionParameter = paramManager.getCurrentInput( parameterName );
    if ( actionParameter == null ) {
      throw new InvalidParameterException( Messages.getInstance().getErrorString(
View Full Code Here

          textBodyPart.setContent( messagePlain, "text/plain; charset=" + LocaleHelper.getSystemEncoding() ); //$NON-NLS-1$
          multipart.addBodyPart( textBodyPart );
        }

        for ( EmailAttachment element : emailAttachments ) {
          IPentahoStreamSource source = element.getContent();
          if ( source == null ) {
            error( Messages.getInstance().getErrorString( "Email.ERROR_0015_ATTACHMENT_FAILED" ) ); //$NON-NLS-1$
            return false;
          }
          DataSource dataSource = new ActivationHelper.PentahoStreamSourceWrapper( source );
View Full Code Here

      }
    }
  }

  public IPentahoStreamSource getDataSource() {
    return new IPentahoStreamSource() {

      public OutputStream getOutputStream() throws IOException {
        return outputStream;
      }
View Full Code Here

TOP

Related Classes of org.pentaho.commons.connection.IPentahoStreamSource

Copyright © 2018 www.massapicom. 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.