Package it.eng.spagobi.tools.dataset.bo

Examples of it.eng.spagobi.tools.dataset.bo.IDataSet.loadData()


      jsonResponse = new JSONObject();
     
      // get data
      dataSet.setParamsMap(new HashMap());
      dataSet.setUserProfileAttributes(UserProfileUtils.getProfileAttributes( getUserProfile() ));
      dataSet.loadData();
      dataStore = dataSet.getDataStore();
      Object resultNumber = dataStore.getMetaData().getProperty("resultNumber");
      if(resultNumber == null) dataStore.getMetaData().setProperty("resultNumber", new Integer(0));
     
      JSONDataWriter dataStoreWriter = new JSONDataWriter();
View Full Code Here


            for(int y=0; y< jasperDesign.getParametersList().size(); y++){
              JRParameter parameter = (JRParameter)jasperDesign.getParametersList().get(y);
              String paramName = parameter.getName();
              if(parameter.getValueClassName().equals("net.sf.jasperreports.engine.JRDataSource")&& paramName.equals(datasetName)){//&& parameter.getName().equals(dataset.getLabel()
                //set dataset query value
                dataset.loadData();
                IDataStore dstore = dataset.getDataStore();
              JRSpagoBIDataStoreDataSource dataSource = new JRSpagoBIDataStoreDataSource( dstore );
               
                getEnv().put(paramName, dataSource);
                logger.debug("set parameter"+ paramName+" value");
View Full Code Here

      engineInstance =  (GeoReportEngineInstance)servletIOManager.getHttpSession().getAttribute(EngineConstants.ENGINE_INSTANCE);
     
      //DataSet
      dataSet = engineInstance.getDataSet();
      dataSet.setParamsMap(engineInstance.getEnv());
      dataSet.loadData();
     
      //Datastore
      dataStore = dataSet.getDataStore();
      dataStoreMeta = dataStore.getMetaData();
           
View Full Code Here

        Object attributeValue = profile.getUserAttribute(attributeName);
        userAttributes.put(attributeName, attributeValue);
      }
      dataSet.addBinding("attributes", userAttributes);
      dataSet.addBinding("parameters", engineInstance.getEnv());
      dataSet.loadData(start, limit, (maxSize == null? -1: maxSize.intValue()));
       
      dataStore = dataSet.getDataStore();
      Assert.assertNotNull(dataStore, "The dataStore returned by loadData method of the class [" + dataSet.getClass().getName()+ "] cannot be null");
     
      logger.debug("Query executed succesfully");
View Full Code Here

          logger.debug("Setting values [" + parameterValues + "] for parameter with name = [" + aDataSetParameterItem.getName() + "]");
          parameters.put(aDataSetParameterItem.getName(), parameterValues);
        }
      }
      dataSet.setParamsMap(parameters);
      dataSet.loadData();
      IDataStore dataStore = dataSet.getDataStore();
      DataStoreMetaData dataStoreMetadata = (DataStoreMetaData) dataStore.getMetaData();
      toReturn = new SDKObjectsConverter().fromDataStoreMetadataToSDKDataStoreMetadata(dataStoreMetadata);
    } catch(NotAllowedOperationException e) {
      throw e;
View Full Code Here

              userAttributes.put(attributeName, attributeValue);
            }
            dataSet.addBinding("attributes", userAttributes);
            dataSet.addBinding("parameters", this.getEnv());
            logger.debug("Executing query ...");
            dataSet.loadData(start, limit, (maxSize == null? -1: maxSize.intValue()));
           
            dataStore = dataSet.getDataStore();
         
          } else {
            // case of FormEngine
View Full Code Here

          Object attributeValue = profile.getUserAttribute(attributeName);
          userAttributes.put(attributeName, attributeValue);
        }
        dataSet.addBinding("attributes", userAttributes);
        dataSet.addBinding("parameters", this.getEnv());
        dataSet.loadData(0, 1, 1);
       
        logger.info("Query execution did not throw any exception. Validation successful.");
        validationResult = true;
      } catch (Throwable t) {
        logger.info("Query execution thrown an exception. Validation failed.");
View Full Code Here

        Object attributeValue = profile.getUserAttribute(attributeName);
        userAttributes.put(attributeName, attributeValue);
      }
      dataSet.addBinding("attributes", userAttributes);
      dataSet.addBinding("parameters", this.getEnv());
      dataSet.loadData(start, limit, (maxSize == null? -1: maxSize.intValue()));
     
      dataStore = dataSet.getDataStore();
      Assert.assertNotNull(dataStore, "The dataStore returned by loadData method of the class [" + dataSet.getClass().getName()+ "] cannot be null");
    } catch (Exception e) {
      logger.debug("Query execution aborted because of an internal exceptian");
View Full Code Here

        //gets the dataset data about the email address
        IDataStore emailDispatchDataStore = null;
        if (saveInfo.isUseDataSet()) {
          IDataSet dataSet = DAOFactory.getDataSetDAO().loadActiveDataSetByLabel(saveInfo.getDataSetLabel());
          dataSet.setUserProfileAttributes(UserProfileUtils.getProfileAttributes(profile));
          dataSet.loadData();
          emailDispatchDataStore = dataSet.getDataStore();
        }
        //gets the dataset data about the folder for the document save
        IDataStore folderDispatchDataSotre = null;
        if (saveInfo.isUseFolderDataSet()) {
View Full Code Here

        //gets the dataset data about the folder for the document save
        IDataStore folderDispatchDataSotre = null;
        if (saveInfo.isUseFolderDataSet()) {
          IDataSet dataSet = DAOFactory.getDataSetDAO().loadActiveDataSetByLabel(saveInfo.getDataSetFolderLabel());
            dataSet.setUserProfileAttributes(UserProfileUtils.getProfileAttributes(profile));
          dataSet.loadData();
           folderDispatchDataSotre = dataSet.getDataStore();
        }
       
        eventManager = EventsManager.getInstance();
        List roles = DAOFactory.getBIObjectDAO().getCorrectRolesForExecution(biobj.getId());
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.