Examples of PentahoEntityResolver


Examples of org.pentaho.platform.engine.services.solution.PentahoEntityResolver

          new DynamicContentFinder( dataSourcesUrl ) {
            @Override
            public String getContent() {
              try {
                String original = generateInMemoryDatasourcesXml();
                EntityResolver loader = new PentahoEntityResolver();
                Document originalDocument = XmlDom4JHelper.getDocFromString( original, loader );
                if ( PentahoXmlaServlet.logger.isDebugEnabled() ) {
                  PentahoXmlaServlet.logger
                      .debug( Messages.getInstance().getString( "PentahoXmlaServlet.DEBUG_ORIG_DOC", originalDocument.asXML() ) ); //$NON-NLS-1$
                }
View Full Code Here

Examples of org.pentaho.platform.engine.services.solution.PentahoEntityResolver

    public void unload(){

    }

  private void loadDatasourcesFromXml(String dataSources) {
    EntityResolver loader = new PentahoEntityResolver();
    Document doc = null;
    try {
      doc = XmlDom4JHelper.getDocFromFile(dataSources, loader);
      String modified = doc.asXML();
      doc = XmlDom4JHelper.getDocFromString(modified, loader);
View Full Code Here

Examples of org.pentaho.platform.engine.services.solution.PentahoEntityResolver

      hibernateManaged = Boolean.parseBoolean( hibernateManagedString );
    }

    try {
      HibernateUtil.configuration = new Configuration();
      HibernateUtil.configuration.setEntityResolver( new PentahoEntityResolver() );
      HibernateUtil.configuration.setListener( "load", new HibernateLoadEventListener() ); //$NON-NLS-1$

      if ( hibernateConfigurationFile != null ) {
        String configPath = applicationContext.getSolutionPath( hibernateConfigurationFile );
        File cfgFile = new File( configPath );
View Full Code Here

Examples of org.pentaho.platform.engine.services.solution.PentahoEntityResolver

  public static String logVersionCheck( final List results, final Log logger ) {
    String output = null;
    if ( ( results != null ) && ( results.size() > 0 ) ) {
      String result = results.get( 0 ).toString();
      try {
        Document doc = XmlDom4JHelper.getDocFromString( result, new PentahoEntityResolver() );
        if ( doc != null ) {
          List nodes = doc.selectNodes( "//update" ); //$NON-NLS-1$
          Iterator nodeIter = nodes.iterator();
          while ( nodeIter.hasNext() ) {
            Element updateElement = (Element) nodeIter.next();
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.