Package it.eng.spagobi.services.dataset.service

Examples of it.eng.spagobi.services.dataset.service.DataSetSupplier


 
  public void doService() {
   
    String dataSetLabel;
    String callback;
    DataSetSupplier dataSetSupplier;
    SpagoBiDataSet dataSetConfig;
    IDataSet dataSet;
    IDataStore dataStore;
    JSONObject dataSetJSON;
   
   
    logger.debug("IN");
   
    try {
   
      dataSetLabel = getAttributeAsString( DATASET_LABEL );
      logger.debug("Parameter [" + DATASET_LABEL + "] is equals to [" + dataSetLabel + "]");     
      Assert.assertTrue(!StringUtilities.isEmpty( dataSetLabel ), "Parameter [" + DATASET_LABEL + "] cannot be null or empty");
     
      callback = getAttributeAsString( CALLBACK );
      logger.debug("Parameter [" + CALLBACK + "] is equals to [" + callback + "]");
     
      dataSetConfig = null;
      try {
        dataSetSupplier = new DataSetSupplier();           
        dataSetConfig = dataSetSupplier.getDataSetByLabel(dataSetLabel);
      } catch(Throwable t) {
        throw new SpagoBIServiceException("Impossible to find a dataset whose label is [" + dataSetLabel + "]", t);
      }
      Assert.assertNotNull(dataSetConfig, "Impossible to find a dataset whose label is [" + dataSetLabel + "]");
     
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.dataset.service.DataSetSupplier

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.