Package it.eng.spagobi.engines

Examples of it.eng.spagobi.engines.InternalEngineIFace


    // IF THE ENGINE IS INTERNAL 
    } else {
     
      String className = engine.getClassName();
      debug("execute", "Try instantiating class " + className + " for internal engine " + engine.getName() + "...");
      InternalEngineIFace internalEngine = null;
      // tries to instantiate the class for the internal engine
      try {
        if (className == null && className.trim().equals("")) throw new ClassNotFoundException();
        internalEngine = (InternalEngineIFace) Class.forName(className).newInstance();
      } catch (ClassNotFoundException cnfe) {
        logger.fatal("The class ['" + className + "'] for internal engine " + engine.getName() + " was not found.", cnfe);
        Vector params = new Vector();
        params.add(className);
        params.add(engine.getName());
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR, 2001, params));
        return;
      } catch (Exception e) {
        logger.fatal("Error while instantiating class " + className, e);
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR, 100));
        return;
      }
     
      debug("execute", "Class " + className + " instantiated successfully. Now engine's execution starts.");
     
      // starts engine's execution
      try {
        internalEngine.handleNewDocumentTemplateCreation(requestContainer, obj, response);
      } catch (InvalidOperationRequest ior) {
        logger.info("Engine " + engine.getName() + " cannot build document template");
        Vector params = new Vector();
        params.add(engine.getName());
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.INFORMATION, "1076", params));
View Full Code Here


    // IF THE ENGINE IS INTERNAL 
    } else {
     
      String className = engine.getClassName();
      debug("execute", "Try instantiating class " + className + " for internal engine " + engine.getName() + "...");
      InternalEngineIFace internalEngine = null;
      // tries to instantiate the class for the internal engine
      try {
        if (className == null && className.trim().equals("")) throw new ClassNotFoundException();
        internalEngine = (InternalEngineIFace) Class.forName(className).newInstance();
      } catch (ClassNotFoundException cnfe) {
        logger.fatal("The class ['" + className + "'] for internal engine " + engine.getName() + " was not found.", cnfe);
        Vector params = new Vector();
        params.add(className);
        params.add(engine.getName());
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR, 2001, params));
        return;
      } catch (Exception e) {
        logger.fatal("Error while instantiating class " + className, e);
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR, 100));
        return;
      }
     
      debug("execute", "Class " + className + " instantiated successfully. Now engine's execution starts.");
     
      // starts engine's execution
      try {
        internalEngine.handleDocumentTemplateEdit(requestContainer, obj, response);
      } catch (InvalidOperationRequest ior) {
        logger.info("Engine " + engine.getName() + " cannot build document template");
        Vector params = new Vector();
        params.add(engine.getName());
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.INFORMATION, "1076", params));
View Full Code Here

    } else {

      String className = engine.getClassName();
      logger.debug("Try instantiating class " + className
          + " for internal engine " + engine.getName() + "...");
      InternalEngineIFace internalEngine = null;
      // tries to instantiate the class for the internal engine
      try {
        if (className == null && className.trim().equals(""))
          throw new ClassNotFoundException();
        internalEngine = (InternalEngineIFace) Class.forName(className)
        .newInstance();
      } catch (ClassNotFoundException cnfe) {
        logger.error("The class ['" + className
            + "'] for internal engine " + engine.getName()
            + " was not found.", cnfe);
        Vector params = new Vector();
        params.add(className);
        params.add(engine.getName());
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
            2001, params));
        return;
      } catch (Exception e) {
        logger.error("Error while instantiating class " + className, e);
        errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
            100));
        return;
      }

      logger
      .debug("Class "
          + className
          + " instantiated successfully. Now engine's execution starts.");

      // starts engine's execution
      try {

        if (subObj != null)
          internalEngine.executeSubObject(this.getRequestContainer(),
              obj, response, subObj);
        else
          internalEngine.execute(this.getRequestContainer(), obj,
              response);
      } catch (EMFUserError e) {
        logger.error("Error while engine execution", e);
        errorHandler.addError(e);
      } catch (Exception e) {
View Full Code Here

      return null;
    }
    String className = engine.getClassName();
    logger.debug("Try instantiating class " + className
        + " for internal engine " + engine.getName() + "...");
    InternalEngineIFace internalEngine = null;
    // tries to instantiate the class for the internal engine
    try {
      if (className == null && className.trim().equals("")) throw new ClassNotFoundException();
      internalEngine = (InternalEngineIFace) Class.forName(className).newInstance();
    } catch (ClassNotFoundException cnfe) {
View Full Code Here

          errorHandler = defaultRequestContext.getErrorHandler();

          String className = eng.getClassName();
          logger.debug("Try instantiating class " + className
              + " for internal engine " + eng.getName() + "...");
          InternalEngineIFace internalEngine = null;
          // tries to instantiate the class for the internal engine
          try {
            if (className == null && className.trim().equals(""))
              throw new ClassNotFoundException();
            internalEngine = (InternalEngineIFace) Class.forName(className).newInstance();
          } catch (ClassNotFoundException cnfe) {
            logger.error("The class ['" + className
                + "'] for internal engine " + eng.getName()
                + " was not found.", cnfe);
            Vector params = new Vector();
            params.add(className);
            params.add(eng.getName());
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                2001, params));
            return response;
          } catch (Exception e) {
            logger.error("Error while instantiating class " + className, e);
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                100));
            return response;
          }
          try {
            reqContainer.setAttribute("scheduledExecution", "true");
            internalEngine.execute(reqContainer, biObject, resp);
          } catch (EMFUserError e) {
            logger.error("Error during engine execution", e);
            errorHandler.addError(e);
          } catch (Exception e) {
            logger.error("Error while engine execution", e);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.InternalEngineIFace

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.