Package org.pentaho.platform.engine.services

Examples of org.pentaho.platform.engine.services.SolutionURIResolver


      }
    }
    Document document = null;
    try {
      org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
      reader.setEntityResolver( new SolutionURIResolver() );
      document = reader.read( actionResource.getInputStream(
        RepositoryFilePermission.READ, LocaleHelper.getLocale() ) );
    } catch ( Throwable t ) {
      // XML document can't be read. We'll just return a null document.
    }
View Full Code Here


          if ( value != null ) {
            createFeedbackParameter( name, name, "", value, false ); //$NON-NLS-1$
          }
        }
      }
      SolutionURIResolver resolver = new SolutionURIResolver();
      if ( parameterXsl == null ) {
        // Generate XForm for the parameters needed, transform into
        // HTML, and float it down the feedback stream
        xformBody.append( "<tr><td>" ); //$NON-NLS-1$
        XForm.createXFormSubmit( RuntimeContext.PARAMETER_FORM, xformBody, Messages.getInstance().getString(
View Full Code Here

    String path = "system" + RepositoryFile.SEPARATOR + folder.getName() + RepositoryFile.SEPARATOR + "plugin.xml"; //$NON-NLS-1$ //$NON-NLS-2$
    Document doc = null;
    try {
      try {
        org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
        reader.setEntityResolver( new SolutionURIResolver() );
        doc = reader.read( ActionSequenceResource.getInputStream( path, LocaleHelper.getLocale() ) );
      } catch ( Throwable t ) {
        // XML document can't be read. We'll just return a null document.
      }
      if ( doc != null ) {
View Full Code Here

    if ( filterPanel == null ) {
      // load the XML document that defines the dial
      Document filterDocument = null;
      try {
        org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
        reader.setEntityResolver( new SolutionURIResolver() );
        filterDocument =
            reader.read( ActionSequenceResource.getInputStream( definitionPath, LocaleHelper.getLocale() ) );
      } catch ( Throwable t ) {
        FilterPanelComponent.logger.error( Messages.getInstance().getString(
            "FilterPanelComponent.ERROR_0002_CREATE_XML" ), t ); //$NON-NLS-1$
View Full Code Here

      String description = actionSequence.getDescription();
      if ( description != null ) {
        setXslProperty( "description", description ); //$NON-NLS-1$
      }

      String xFormHtml = XForm.transformSnippet( xFormNode, getSession(), new SolutionURIResolver() );
      if ( xFormHtml == null ) {
        error( Messages.getInstance().getString( "InputForm.ERROR_0007_INBOX_DEFINITION_INVALID" ) + solution + path + actionName ); //$NON-NLS-1$
        return null;
      }
      Document document = DocumentHelper.parseText( xFormHtml );
View Full Code Here

        }
        StringBuffer sb = null;
        try {
          sb =
              XmlHelper.transformXml( xslName, getSourcePath(), document.asXML(), getXslProperties(),
                  new SolutionURIResolver() );
        } catch ( TransformerException e ) {
          XmlComponent.log.error( Messages.getInstance().getString( "XmlComponent.ERROR_0000_XML_XFORM_FAILED" ), e ); //$NON-NLS-1$
          return null;
        }
        if ( sb == null ) {
View Full Code Here

  public boolean setDataAction( final String widgetGridDataDefinition ) {
    try {
      Document dataActionDocument = null;
      try {
        org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
        reader.setEntityResolver( new SolutionURIResolver() );
        dataActionDocument =
            reader.read( ActionSequenceResource.getInputStream( widgetGridDataDefinition, LocaleHelper.getLocale() ) );
      } catch ( Throwable t ) {
        return false;
      }
View Full Code Here

    // create the widget to use
    // load the XML document that defines the dial
    Document dialDefinition = null;
    try {
      org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
      reader.setEntityResolver( new SolutionURIResolver() );
      dialDefinition = reader.read( ActionSequenceResource.getInputStream( definitionPath, LocaleHelper.getLocale() ) );
    } catch ( Throwable t ) {
      // XML document can't be read. We'll just return a null document.
    }
View Full Code Here

          new ActionSequenceResource( title, IActionSequenceResource.SOLUTION_FILE_RESOURCE, "text/xml", //$NON-NLS-1$
              definitionPath );
      Document dialDefinition = null;
      try {
        org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
        reader.setEntityResolver( new SolutionURIResolver() );
        dialDefinition =
            reader.read( resource.getInputStream( RepositoryFilePermission.READ, LocaleHelper.getLocale() ) );
      } catch ( Throwable t ) {
        // XML document can't be read. We'll just return a null document.
      }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.services.SolutionURIResolver

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.