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 + "]");