Package it.eng.spagobi.engines.config.bo

Examples of it.eng.spagobi.engines.config.bo.Engine


      IEngineDAO engineDAO = DAOFactory.getEngineDAO();
      List engines = engineDAO.loadAllEnginesForBIObjectType(officeDocDom.getValueCd());
      if(engines.isEmpty()) {
        throw new Exception(" No suitable engines for the new document");
      }
      Engine engine = (Engine)engines.get(0);   
      // load the template
      ObjTemplate objTemp = new ObjTemplate();
      objTemp.setActive(new Boolean(true));
      objTemp.setContent(response);
      objTemp.setName(docName + fileExt);
View Full Code Here


      obj = (BIObject) biobject;
    } catch (ClassCastException cce) {
      logger.error("The input object is not a BIObject type", cce);
      return null;
    }
    Engine engine = obj.getEngine();
    String url = engine.getUrl();
    HashMap parameters = new HashMap();
    String documentId = obj.getId().toString();
    parameters.put("document", documentId);
    parameters.put("isSpagoBIDev", "true");
    applyLocale(parameters);
View Full Code Here

      obj = (BIObject) biobject;
    } catch (ClassCastException cce) {
      logger.error("The input object is not a BIObject type", cce);
      return null;
    }
    Engine engine = obj.getEngine();
    String url = engine.getUrl();
    HashMap parameters = new HashMap();
    String documentId = obj.getId().toString();
    parameters.put("document", documentId);
    parameters.put("isSpagoBIDev", "true");
    parameters.put("isNewDocument", "true");
View Full Code Here

    return biObjectList;
  }
 
  public String getEngineBaseUrl(BIObject document) {
    String url;
    Engine engine = document.getEngine();
    url = engine.getUrl();
    if(url.trim().endsWith("/") || url.trim().endsWith("\\")) url = url.substring(0, url.length()-1);
   
    if(url.lastIndexOf('\\') >0 )url = url.substring(0, url.lastIndexOf('\\'));
    else if(url.lastIndexOf('/') > 0 ) url = url.substring(0, url.lastIndexOf('/'));
   
View Full Code Here

      obj = (BIObject) biobject;
    } catch (ClassCastException cce) {
      logger.error("The input object is not a BIObject type", cce);
      return null;
    }
    Engine engine = obj.getEngine();
    String url = engine.getUrl();
    HashMap parameters = new HashMap();
    String documentId = obj.getId().toString();
    parameters.put("document", documentId);
    parameters.put("forward", "editQuery.jsp");
    applySecurity(parameters, profile);
View Full Code Here

      obj = (BIObject) biobject;
    } catch (ClassCastException cce) {
      logger.error("The input object is not a BIObject type", cce);
      return null;
    }
    Engine engine = obj.getEngine();
    String url = engine.getUrl();
    HashMap parameters = new HashMap();
    String documentId = obj.getId().toString();
    parameters.put("document", documentId);
    parameters.put("forward", "initialQueryCreator.jsp");
    applySecurity(parameters, profile);
View Full Code Here

  throws InvalidOperationRequest {
     
      EngineURL engineURL;
      BIObject obj;
      String documentId;
      Engine engine;
      String url;
      HashMap parameters;
     
      logger.debug("IN");
     
      try {
        obj = null;     
      try {
        obj = (BIObject) biobject;
      } catch (ClassCastException cce) {
        logger.error("The input object is not a BIObject type", cce);
        return null;
      }
     
      documentId = obj.getId().toString();
      engine = obj.getEngine();
      url = engine.getUrl();
      //url = url.replaceFirst("/servlet/AdapterHTTP", "");
      //url += "/templateBuilder.jsp";
       
      parameters = new HashMap();
      parameters.put("document", documentId);
View Full Code Here

  throws InvalidOperationRequest {
     
      EngineURL engineURL;
      BIObject obj;
      String documentId;
      Engine engine;
      String url;
      HashMap parameters;
     
      logger.debug("IN");
     
      try {
        obj = null;     
      try {
        obj = (BIObject) biobject;
      } catch (ClassCastException cce) {
        logger.error("The input object is not a BIObject type", cce);
        return null;
      }
     
      documentId = obj.getId().toString();
      engine = obj.getEngine();
      url = engine.getUrl();
      //url = url.replaceFirst("/servlet/AdapterHTTP", "");
      //url += "/templateBuilder.jsp";
       
      parameters = new HashMap();
      parameters.put("document", documentId);
View Full Code Here

   */
  private void getDettaglioEngine(String key, SourceBean response) throws EMFUserError {
    try {
      this.modalita = AdmintoolsConstants.DETAIL_MOD;
      response.setAttribute("modality", modalita);
      Engine engine = DAOFactory.getEngineDAO().loadEngineByID(new Integer(key));
      response.setAttribute("engineObj", engine);
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, "DettaglioEngineModule","getDettaglioEngine","Cannot fill response container", ex  );
      HashMap params = new HashMap();
      params.put(AdmintoolsConstants.PAGE, ListEnginesModule.MODULE_PAGE);
View Full Code Here

      Domain engineType = DAOFactory.getDomainDAO().loadDomainById(engineTypeId);           

      if ("EXT".equalsIgnoreCase(engineType.getValueCd())) ValidationCoordinator.validate("PAGE", "ExternalEngineDetailPage", this);
      else ValidationCoordinator.validate("PAGE", "InternalEngineDetailPage", this);
     
      Engine engine = recoverEngineDetails(request);
      EMFErrorHandler errorHandler = getErrorHandler();
     
      // if there are some validation errors into the errorHandler does not write into DB
      Collection errors = errorHandler.getErrors();
      if (errors != null && errors.size() > 0) {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.config.bo.Engine

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.