Package it.eng.spagobi.tools.scheduler

Examples of it.eng.spagobi.tools.scheduler.FormulaParameterValuesRetriever


              String[] userRole = userRoleStr.split("\\|");
              strategy.setUserIndentifierToBeUsed(userRole[0]);
              strategy.setRoleToBeUsed(userRole[1]);
              biobjpar.setParameterValuesRetriever(strategy);
            } else if (useFormulaParameters.containsKey(biobjpar.getParameterUrlName())) {
              FormulaParameterValuesRetriever strategy = new FormulaParameterValuesRetriever();
              String fName = useFormulaParameters.get(biobjpar.getParameterUrlName());
              Formula f = Formula.getFormula(fName);
              strategy.setFormula(f);
              biobjpar.setParameterValuesRetriever(strategy);
            } else {
              for(int j=0; j<parCouples.length; j++) {
                String parCouple = parCouples[j];
                String[] parDef = parCouple.split("=");
View Full Code Here


      Iterator it = parameters.iterator();
      while (it.hasNext()) {
        BIObjectParameter parameter = (BIObjectParameter) it.next();
        if (useFormulaParametersMap.containsKey(parameter.getParameterUrlName())) {
          logger.debug("Document parameter with url name [" + parameter.getParameterUrlName() + "] was configured to use a formula.");
          FormulaParameterValuesRetriever strategy = new FormulaParameterValuesRetriever();
          String fName = useFormulaParametersMap.get(parameter.getParameterUrlName());
          Formula f = Formula.getFormula(fName);
          strategy.setFormula(f);
          parameter.setParameterValuesRetriever(strategy);
        }
      }
    } finally {
      logger.debug("OUT");
View Full Code Here

            RuntimeLoadingParameterValuesRetriever strategy = (RuntimeLoadingParameterValuesRetriever) strategyObj;
            String user = strategy.getUserIndentifierToBeUsed();
            String role = strategy.getRoleToBeUsed();
            loadAtRuntimeParameters.append(biobjpar.getParameterUrlName() + "(" + user + "|" + role + ");");
          } else if (strategyObj != null && strategyObj instanceof FormulaParameterValuesRetriever) {
            FormulaParameterValuesRetriever strategy = (FormulaParameterValuesRetriever) strategyObj;
            String fName = strategy.getFormula().getName();
            useFormulaParameters.append(biobjpar.getParameterUrlName() + "(" + fName + ");");
          } else {
            String concatenatedValue = "";
            List values = biobjpar.getParameterValues();
            if(values != null && !values.isEmpty()) {
View Full Code Here

        String isIterativeStr = (String) request.getAttribute(nameParInRequest + "_Iterative");
        boolean isIterative = isIterativeStr != null && isIterativeStr.equalsIgnoreCase("true");
        biobjpar.setIterative(isIterative);
        if (useFormula) {
          String fName = (String) request.getAttribute(nameParInRequest + "_formula");
          FormulaParameterValuesRetriever strategy = new FormulaParameterValuesRetriever();
          Formula f = Formula.getFormula(fName);
          strategy.setFormula(f);
          biobjpar.setParameterValuesRetriever(strategy);
        } else if (loadAtRuntime) {
          RuntimeLoadingParameterValuesRetriever strategy = new RuntimeLoadingParameterValuesRetriever();
          strategy.setUserIndentifierToBeUsed(profile.getUserUniqueIdentifier().toString());
          String roleToBeUsed = (String) request.getAttribute(nameParInRequest + "_loadWithRole");
          strategy.setRoleToBeUsed(roleToBeUsed);
          biobjpar.setParameterValuesRetriever(strategy);
        } else if (useFixedValues) {
          biobjpar.setParameterValuesRetriever(null);
          String valueParConcat = (String)request.getAttribute(nameParInRequest);
          if(valueParConcat!=null){
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.scheduler.FormulaParameterValuesRetriever

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.