Package it.eng.spagobi.services.dataset.bo

Examples of it.eng.spagobi.services.dataset.bo.SpagoBiDataSet


   
  }
   
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;
   
    sbd = super.toSpagoBiDataSet();
   
    sbd.setType( DS_TYPE );   
   
    sbd.setAdress( getAddress() );
    sbd.setOperation( getOperation() );

    return sbd;
  }
View Full Code Here


      logger.debug("OUT");     
    }
    
 
  public SpagoBiDataSet toSpagoBiDataSet( ) {
    SpagoBiDataSet sbd;
    FileDataProxy dataProxy;
   
    sbd = super.toSpagoBiDataSet();
   
    sbd.setType( DS_TYPE );
       
    dataProxy = (FileDataProxy)getDataProxy();
    sbd.setFileName( dataProxy.getFileName() );
   
    return sbd;
  }
View Full Code Here

  public IDataSource getDataSource() {
    return this.dataSource;
  }
   
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;

    sbd = super.toSpagoBiDataSet();

    sbd.setType(DS_TYPE);
    if(getDataSource() != null) {
      sbd.setDataSource(getDataSource().toSpagoBiDataSource());
    }
    sbd.setJsonQuery(getJsonQuery());
    sbd.setDatamarts(getDatamarts());

    return sbd;
  }
View Full Code Here

      else logger.debug("requestConnectionName:"+requestConnectionName);
     
      Connection con = null;
      String query= null;

      SpagoBiDataSet dataset = getDataSet(requestConnectionName, session, profile, documentId);
      if (dataset == null) {
          logger.debug("No dataset query associated to this document");
          logger.debug("Try to get datasource");
          con = getConnection(requestConnectionName,session,profile,documentId);
          if(con == null){
            logger.error("Document "+documentId+" has no dataset query neither datasource associated!");
            // AUDIT UPDATE
            if (auditAccessUtils != null)
          auditAccessUtils.updateAudit(session,(String) profile.getUserUniqueIdentifier(), auditId, null, new Long(System
            .currentTimeMillis()), "EXECUTION_FAILED", "No connection available", null);
            return;
          } else{
            //get the request query parameter name
            query = (String) request.getParameter(QUERY);
           
          }        
      } else{
        //get query
        query = dataset.getQuery();
        try {
        con = dataset.getDataSource().readConnection(dataset.getDataSource().getSchemaAttribute());
      } catch (Exception e) {
        logger.error("Unable to get connection", e);
          if (auditAccessUtils != null)
          auditAccessUtils.updateAudit(session,(String) profile.getUserUniqueIdentifier(), auditId, null, new Long(System
            .currentTimeMillis()), "EXECUTION_FAILED", e.getMessage(), null);
View Full Code Here

   
    if (dataset==null) {
        logger.warn("Data Set IS NULL. There are problems reading DataSet informations");
        return null;
    }
    SpagoBiDataSet biDataset = null;
    try {
      biDataset= dataset.toSpagoBiDataSet();
    } catch (Exception e) {
      logger.error("Cannot retrive SpagoBi DataSet", e);
    }
View Full Code Here

  public void doService() {
   
    String dataSetLabel;
    String callback;
    DataSetSupplier dataSetSupplier;
    SpagoBiDataSet dataSetConfig;
    IDataSet dataSet;
    IDataStore dataStore;
    JSONObject dataSetJSON;
   
   
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.dataset.bo.SpagoBiDataSet

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.