Examples of SDKObjectsConverter


Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

          List enginesList = DAOFactory.getEngineDAO().loadAllEngines();
          List sdkEnginesList = new ArrayList();
        if (enginesList != null && enginesList.size() > 0) {
                for (Iterator it = enginesList.iterator(); it.hasNext();) {
                    Engine engine = (Engine) it.next();
                    SDKEngine sdkEngine = new SDKObjectsConverter().fromEngineToSDKEngine(engine);
                    sdkEnginesList.add(sdkEngine);
                }
        }
        toReturn = new SDKEngine[sdkEnginesList.size()];
        toReturn = (SDKEngine[]) sdkEnginesList.toArray(toReturn);
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

      IDataSource dataSource = DAOFactory.getDataSourceDAO().loadDataSourceByID(dataSourceId);
      if (dataSource == null) {
        logger.warn("DataSource with identifier [" + dataSourceId + "] not existing.");
        return null;
      }
      toReturn = new SDKObjectsConverter().fromSpagoBiDataSourceToSDKDataSource(dataSource.toSpagoBiDataSource());
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
      logger.error("Error while retrieving SDKDataSources list", e);
      logger.debug("Returning null");
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

      super.checkUserPermissionForFunctionality(SpagoBIConstants.DATASOURCE_MANAGEMENT, "User cannot see datasources congifuration.");
      List dataSourceList = DAOFactory.getDataSourceDAO().loadAllDataSources();
      toReturn = new SDKDataSource[dataSourceList.size()];
      for (int i = 0; i < dataSourceList.size(); i++) {
        IDataSource dataSource = (IDataSource) dataSourceList.get(i);
        SDKDataSource sdkDataSource = new SDKObjectsConverter().fromSpagoBiDataSourceToSDKDataSource(dataSource.toSpagoBiDataSource());
        toReturn[i] = sdkDataSource;
      }
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

      IDataSet dataSet = DAOFactory.getDataSetDAO().loadActiveIDataSetByID(dataSetId);
      if (dataSet == null) {
        logger.warn("DataSet with identifier [" + dataSetId + "] not existing.");
        return null;
      }
      toReturn = new SDKObjectsConverter().fromSpagoBiDataSetToSDKDataSet(dataSet.toSpagoBiDataSet());
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
      logger.error("Error while retrieving SDKEngine list", e);
      logger.debug("Returning null");
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

      super.checkUserPermissionForFunctionality(SpagoBIConstants.DATASET_MANAGEMENT, "User cannot see datasets congifuration.");
      List dataSetList = DAOFactory.getDataSetDAO().loadAllActiveDataSets();
      toReturn = new SDKDataSet[dataSetList.size()];
      for (int i = 0; i < dataSetList.size(); i++) {
        IDataSet dataSet = (IDataSet) dataSetList.get(i);
        SDKDataSet sdkDataSet = new SDKObjectsConverter().fromSpagoBiDataSetToSDKDataSet(dataSet.toSpagoBiDataSet());
        toReturn[i] = sdkDataSet;
      }
    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(Exception e) {
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

        IDataStore dataStore = dataSet.getDataStore();
        dsMeta = (DataStoreMetaData) dataStore.getMetaData();

      }

      toReturn = new SDKObjectsConverter().fromDataStoreMetadataToSDKDataStoreMetadata((DataStoreMetaData)dsMeta);

    } catch(NotAllowedOperationException e) {
      throw e;
    } catch(MissingParameterValue e) {
      throw e;
View Full Code Here

Examples of it.eng.spagobi.sdk.utilities.SDKObjectsConverter

      if (sdkDataSet == null) {
        logger.warn("SDKDataSet in input is null!");
        return null;
      }
      //defines the new dataset from the sdk object
      GuiGenericDataSet sbiDataset = new SDKObjectsConverter().fromSDKDatasetToBIDataset(sdkDataSet)
     
      dataSetId = sdkDataSet.getId();
      logger.debug("Looking for dataset with id = " + dataSetId);
      if (dataSetId == null){
        logger.warn("DataSet with identifier [" + dataSetId + "] not found. Create it!");   
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.