Examples of SDKDataSource


Examples of it.eng.spagobi.sdk.datasources.bo.SDKDataSource

    logger.debug("IN");
    if (spagoBiDataSource == null) {
      logger.warn("SpagoBiDataSource in input is null!!");
      return null;
    }
    SDKDataSource toReturn = null;
    try {
      toReturn = new SDKDataSource();
      toReturn.setId(spagoBiDataSource.getId());
      toReturn.setLabel(spagoBiDataSource.getLabel());
      toReturn.setJndi(spagoBiDataSource.getJndiName());
      toReturn.setAttrSchema(spagoBiDataSource.getSchemaAttribute());
      //toReturn.setDescr(spagoBiDataSource.)
      //toReturn.setDialectId(spagoBiDataSource.get)
      toReturn.setDriver(spagoBiDataSource.getDriver());
      if(spagoBiDataSource.getMultiSchema()!=null){
        toReturn.setMultiSchema(spagoBiDataSource.getMultiSchema()== true ? Integer.valueOf(1) :Integer.valueOf(0));
      }
      else{
        toReturn.setMultiSchema(null);
      }
      toReturn.setName(spagoBiDataSource.getUser());
      toReturn.setPwd(spagoBiDataSource.getPassword());
      toReturn.setUrlConnection(spagoBiDataSource.getUrl());

    } catch (Exception e) {
      logger.error("Error while converting SpagoBiDataSource into SDKDataSource.", e);
      logger.debug("Returning null.");
      return null;
View Full Code Here

Examples of it.eng.spagobi.sdk.datasources.bo.SDKDataSource



  public SDKDataSource getDataSource(Integer dataSourceId)
  throws NotAllowedOperationException {
    SDKDataSource toReturn = null;
    logger.debug("IN: dataSourceId in input = " + dataSourceId);
    try {
      super.checkUserPermissionForFunctionality(SpagoBIConstants.DATASOURCE_MANAGEMENT, "User cannot see datasource congifuration.");
      if (dataSourceId == null) {
        logger.warn("DataSource identifier in input is null!");
View Full Code Here

Examples of it.eng.spagobi.sdk.datasources.bo.SDKDataSource

      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
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.