Package it.eng.spagobi.services.proxy

Examples of it.eng.spagobi.services.proxy.ContentServiceProxy


          logger.debug("destDir number is equal to [" + destDir + "]");
         
         
          // File or directory does not exist, create a new file compiled!
          //put "true" to the parameter that not permits the validation on parameters of the subreport.
          ContentServiceProxy contentServiceProxy = (ContentServiceProxy)getEnv().get(EngineConstants.ENV_CONTENT_SERVICE_PROXY);
          HashMap requestParameters = new HashMap();
          requestParameters.put("SBI_READ_ONLY_TEMPLATE", "true");
          Content template = contentServiceProxy.readTemplate(subreportMeta.getDocumentId(), requestParameters);
          template.getFileName();
          logger.debug("Read the template.(subreport)"+template.getFileName());
          InputStream is = null;   
          BASE64Decoder bASE64Decoder = new BASE64Decoder();
          byte[] templateContent = bASE64Decoder.decodeBuffer(template.getContent());
View Full Code Here


    String userId = (String) profile.getUserUniqueIdentifier();
    //String userId = (String)((UserProfile) profile).getUserId();
    logger.debug("userId=" + userId);
    logger.debug("documentId=" + documentId);

    ContentServiceProxy contentProxy = new ContentServiceProxy(userId, servletRequest.getSession());

    HashMap requestParameters = ParametersDecoder.getDecodedRequestParameters(servletRequest);
    Content template = contentProxy.readTemplate(documentId,requestParameters);
    logger.debug("Read the template=" + template.getFileName());
   
    InputStream is = null;
    byte[] templateContent = null;
    try {
View Full Code Here

    //String executionId = uuid_local.toString();
    //executionId = executionId.replaceAll("-", "");
    String flgTemplateStandard = "true";

    //ContentServiceProxy contentProxy=new ContentServiceProxy(userId,session);
    ContentServiceProxy contentProxy=new ContentServiceProxy(userUniqueIdentifier,session);

    try {               
      String tmpDirectory = System.getProperty("java.io.tmpdir");

//      all jar needed by JR to succesfully compile a report should be on this path
      // (by default is WEB_INF/lib)
      setJRClasspath(getJRLibDir(servletContext));

      HashMap requestParameters = ParametersDecoder.getDecodedRequestParameters(servletRequest);
      Content template=contentProxy.readTemplate( documentId,requestParameters);
      if (template==null){
        logger.error("The document haven't the template.documentId="+documentId+" userUniqueIdentifier="+userUniqueIdentifier);       
        return;
      }
      logger.debug("Read the template."+template.getFileName());
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.proxy.ContentServiceProxy

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.