Package it.eng.spagobi.services.proxy

Examples of it.eng.spagobi.services.proxy.ContentServiceProxy.saveObjectTemplate()


      }
      xmlString = document.asXML();
        try {
        //ContentServiceProxy proxy=new ContentServiceProxy(user,session);
        ContentServiceProxy proxy=new ContentServiceProxy(userUniqueIdentifier,session);
        String result=proxy.saveObjectTemplate( documentId, templateName, xmlString);
          //byte[] response = sbiutils.saveObjectTemplate(spagoBIBaseUrl, path, templateName, xmlString);
        } catch (Exception gse) {   
          logger.error("Error while saving template", gse);
          //session.setAttribute("saveTemplateMessage", "KO - " + gse.getMessage());
        }  
View Full Code Here


      }
      xmlString = document.asXML();
        try {
      //ContentServiceProxy proxy=new ContentServiceProxy(user,session);
      ContentServiceProxy proxy=new ContentServiceProxy(userUniqueIdentifier,session);
      String result=proxy.saveObjectTemplate( documentId, templateName, xmlString);
        } catch (Exception gse) {   
          logger.error("Error while saving template", gse);
        }  
    } else {
      logger.error("Could not retrieve MDX query");
View Full Code Here

     
      contentServiceProxy = (ContentServiceProxy)qbeEngineInstance.getEnv().get(EngineConstants.ENV_CONTENT_SERVICE_PROXY);
      Assert.assertNotNull(formState, "Parameter [" + FORM_STATE + "] cannot be null");
     
      String docId = (String)qbeEngineInstance.getEnv().get("DOCUMENT");
      String result = contentServiceProxy.saveObjectTemplate(docId, templateName, template.toString());
     
      if (result == null || !result.trim().equals("OK")) {
        throw new Exception("Error while saving document's template");
      }
     
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.