Package com.dotmarketing.portlets.report.struts.ReportForm

Examples of com.dotmarketing.portlets.report.struts.ReportForm.DataSource


    ReportForm rfm = (ReportForm) form;
    String owner = rfm.getOwner();
    ArrayList<String> ds = (DbConnectionFactory.getAllDataSources());
    ArrayList<DataSource> dsResults = new ArrayList<DataSource>();
    for (String dataSource : ds) {
      DataSource d = rfm.getNewDataSource();
      if (dataSource
          .equals(com.dotmarketing.util.Constants.DATABASE_DEFAULT_DATASOURCE)) {
        d.setDsName("DotCMS Datasource");
      } else {
        d.setDsName(dataSource);
      }
      dsResults.add(d);
    }
    rfm.setDataSources(dsResults);
    httpReq.setAttribute("dataSources", rfm.getDataSources());
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.report.struts.ReportForm.DataSource

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.