Package it.eng.spagobi.engines.qbe.analysisstateloaders.formbuilder

Examples of it.eng.spagobi.engines.qbe.analysisstateloaders.formbuilder.IFormStateLoader


    }

    if (encodingFormatVersion.equalsIgnoreCase(formState.CURRENT_VERSION)) {       
      formStateJSON = rowDataJSON;
    } else {
      IFormStateLoader formViewerStateLoader;
      formViewerStateLoader = FormStateLoaderFactory.getInstance().getLoader(encodingFormatVersion);

      formStateJSON = (JSONObject) formViewerStateLoader.load(formStateString);
    }

    QbeJSONTemplateParser.addAdditionalInfo(formStateJSON);
    formState.setProperty(formState.FORM_STATE,  formStateJSON);
    formState.setFormStateValues(valuesDataJSON);
View Full Code Here


      if (encodingFormatVersion.equalsIgnoreCase(CURRENT_VERSION)) {       
        formStateJSON = rowDataJSON;
      } else {
        logger.warn("Row data encoding version [" + encodingFormatVersion + "] does not match with the current version used by the engine [" + CURRENT_VERSION + "] ");
        logger.debug("Converting from encoding version [" + encodingFormatVersion + "] to encoding version [" + CURRENT_VERSION + "]....");
        IFormStateLoader formViewerStateLoader;
        formViewerStateLoader = FormStateLoaderFactory.getInstance().getLoader(encodingFormatVersion);
        if (formViewerStateLoader == null) {
          throw new SpagoBIEngineException("Unable to load data stored in format [" + encodingFormatVersion + "] ");
        }
        formStateJSON = (JSONObject) formViewerStateLoader.load(str);
        logger.debug("Encoding conversion has been executed succesfully");
      }
     
      logger.debug("analysis state loaded succsfully from row data");
     
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.qbe.analysisstateloaders.formbuilder.IFormStateLoader

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.