Examples of refreshParametersValues()


Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

      logger.debug("IN: user = [" + profile.getUserUniqueIdentifier() + "], biobjectid = [" + biobjectId + "], " +
          "roleName = [" + roleName + "], parameters = [" + parameters + "]");
      Monitor monitor =MonitorFactory.start("spagobi.service.ContentSupplier.checkParametersErrors");
    try {
      ExecutionInstance instance = new ExecutionInstance(profile, "", "", biobjectId, roleName, "", true, true);
      instance.refreshParametersValues(parameters, true);
      List errors = instance.getParametersErrors();
      if (errors != null && errors.size() > 0) {
        return false;
      } else {
        return true;
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

    // instantiates a new Execution controller for the current execution
    ExecutionInstance instance = createExecutionInstance(id, role, profile, request, modality);
    // put execution instance in session
    contextManager.set(ExecutionInstance.class.getName(), instance);
    instance.refreshParametersValues(request, true);
    instance.setParameterValues(userProvidedParametersStr, true);
    // refresh obj variable because createExecutionInstance load the BIObject in a different way
    obj = instance.getBIObject();

    // if a snapshot is required, executes it
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

   */
  private void selectNoneValueForPar(SourceBean request, SourceBean response)
  throws Exception {
    logger.debug("IN");
    ExecutionInstance instance = getExecutionInstance();
    instance.refreshParametersValues(request, false);

    String objParIdS=(String)request.getAttribute("objParId");
    //String roleName=(String)request.getAttribute("roleName");
    String roleName=instance.getExecutionRole();

View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

   */
  private void executionHandler(SourceBean request, SourceBean response)
  throws Exception {
    logger.debug("IN");
    ExecutionInstance instance = getExecutionInstance();
    instance.refreshParametersValues(request, false);

    String pendingDelete = (String) request.getAttribute("PENDING_DELETE");
    HashMap paramsDescriptionMap = (HashMap) contextManager.get("PARAMS_DESCRIPTION_MAP");
    if (pendingDelete != null && !pendingDelete.trim().equals("")) {
      BIObject object = instance.getBIObject();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

      scopeVP = "Private";
    }
    String ownerVP = (String) ((UserProfile)profile).getUserId();


    instance.refreshParametersValues(request, false);
    // check parameters values
    List errors = instance.getParametersErrors();
    // add errors into error handler
    Iterator errorsIt = errors.iterator();
    while (errorsIt.hasNext()) {
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

     
      List errors = null;
      //if (executionInstance.getBIObject().getBiObjectTypeCode().equalsIgnoreCase("DATAMART")) {
        // parameters are applied to datamarts' subobjects, so you must validate them
        JSONObject executionInstanceJSON = this.getAttributeAsJSONObject( PARAMETERS );
        executionInstance.refreshParametersValues(executionInstanceJSON, false);
        try {
          errors = executionInstance.getParametersErrors();
        } catch (Exception e) {
          throw new SpagoBIServiceException(SERVICE_NAME, "Cannot evaluate errors on parameters validation", e);
        }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

     
      // we are not executing a subobject or a snapshot, so delete subobject/snapshot if existing
      executionInstance.setSubObject(null);
      executionInstance.setSnapshot(null);
      JSONObject executionInstanceJSON = this.getAttributeAsJSONObject( PARAMETERS );
      executionInstance.refreshParametersValues(executionInstanceJSON, false);

      Locale locale=this.getLocale();

      List errors = null;
      try {
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.handlers.ExecutionInstance.refreshParametersValues()

      Assert.assertNotNull(getContext(), "Parameter [" + PARAMETER_ID + "] cannot be null" );
      Assert.assertNotNull(getContext(), "Execution context cannot be null" );
      Assert.assertNotNull(getContext().getExecutionInstance( ExecutionInstance.class.getName() ), "Execution instance cannot be null");
   
      executionInstance = getContext().getExecutionInstance( ExecutionInstance.class.getName() );
      executionInstance.refreshParametersValues(selectedParameterValuesJSON, false);
     
      BIObject obj = executionInstance.getBIObject();
     
      // START converts JSON object with document's parameters into an hashmap
      selectedParameterValues = null;
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.