@Test public void getReports() { List<BasicReportDefinition> reports = m_defaultRemoteRepository.getReports(); logger.debug("getReports"); for (BasicReportDefinition report : reports) { logger.debug(report.toString()); } }
@Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultReports = new ArrayList<BasicReportDefinition>(); if (isConfigOk()) { m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "reports" + "/" + m_jasperReportsVersion); List<RemoteReportSDO> webCallResult = new ArrayList<RemoteReportSDO>(); try { webCallResult = m_webResource.get(new GenericType<List<RemoteReportSDO>>() { }); } catch (Exception e) { logger.error("Error requesting report template from repository. Error message: '{}' Uri was: '{}'", e.getMessage(), m_webResource.getURI()); e.printStackTrace(); } logger.debug("getReports got '{}' RemoteReportSDOs from uri '{}'", webCallResult.size(), m_webResource.getURI()); resultReports = this.mapSDOListToBasicReportList(webCallResult); } return resultReports; }
DefaultRemoteRepository implements ReportRepository { @Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultReports = new ArrayList<BasicReportDefinition>(); if (isConfigOk()) { m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "reports" + "/" + m_jasperReportsVersion); List<RemoteReportSDO> webCallResult = new ArrayList<RemoteReportSDO>(); try { webCallResult = m_webResource.get(new GenericType<List<RemoteReportSDO>>() { }); } catch (Exception e) { logger.error("Error requesting report template from repository. Error message: '{}' Uri was: '{}'", e.getMessage(), m_webResource.getURI()); e.printStackTrace(); } logger.debug("getReports got '{}' RemoteReportSDOs from uri '{}'", webCallResult.size(), m_webResource.getURI()); resultReports = this.mapSDOListToBasicReportList(webCallResult); } return resultReports; } }
DefaultRemoteRepository implements ReportRepository { @Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultReports = new ArrayList<BasicReportDefinition>(); if (isConfigOk()) { m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "reports" + "/" + m_jasperReportsVersion); List<RemoteReportSDO> webCallResult = new ArrayList<RemoteReportSDO>(); try { webCallResult = m_webResource.get(new GenericType<List<RemoteReportSDO>>() { }); } catch (Exception e) { logger.error("Error requesting report template from repository. Error message: '{}' Uri was: '{}'", e.getMessage(), m_webResource.getURI()); e.printStackTrace(); } logger.debug("getReports got '{}' RemoteReportSDOs from uri '{}'", webCallResult.size(), m_webResource.getURI()); resultReports = this.mapSDOListToBasicReportList(webCallResult); } return resultReports; } DefaultRemoteRepository(
            RemoteRepositoryDefinition remoteRepositoryDefinition,
            String jasperReportsVersion); }
DefaultRemoteRepository implements ReportRepository { @Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultReports = new ArrayList<BasicReportDefinition>(); if (isConfigOk()) { m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "reports" + "/" + m_jasperReportsVersion); List<RemoteReportSDO> webCallResult = new ArrayList<RemoteReportSDO>(); try { webCallResult = m_webResource.get(new GenericType<List<RemoteReportSDO>>() { }); } catch (Exception e) { logger.error("Error requesting report template from repository. Error message: '{}' Uri was: '{}'", e.getMessage(), m_webResource.getURI()); e.printStackTrace(); } logger.debug("getReports got '{}' RemoteReportSDOs from uri '{}'", webCallResult.size(), m_webResource.getURI()); resultReports = this.mapSDOListToBasicReportList(webCallResult); } return resultReports; } DefaultRemoteRepository(
            RemoteRepositoryDefinition remoteRepositoryDefinition,
            String jasperReportsVersion); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String reportId); @Override String getDisplayName(String reportId); @Override String getEngine(String reportId); @Override InputStream getTemplateStream(String reportId); @Override String getRepositoryId(); @Override String getRepositoryName(); @Override String getRepositoryDescription(); @Override String getManagementUrl(); @Override void loadConfiguration(); }
DefaultRemoteRepository implements ReportRepository { @Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultReports = new ArrayList<BasicReportDefinition>(); if (isConfigOk()) { m_webResource = m_client.resource(m_remoteRepositoryDefintion.getURI() + "reports" + "/" + m_jasperReportsVersion); List<RemoteReportSDO> webCallResult = new ArrayList<RemoteReportSDO>(); try { webCallResult = m_webResource.get(new GenericType<List<RemoteReportSDO>>() { }); } catch (Exception e) { logger.error("Error requesting report template from repository. Error message: '{}' Uri was: '{}'", e.getMessage(), m_webResource.getURI()); e.printStackTrace(); } logger.debug("getReports got '{}' RemoteReportSDOs from uri '{}'", webCallResult.size(), m_webResource.getURI()); resultReports = this.mapSDOListToBasicReportList(webCallResult); } return resultReports; } DefaultRemoteRepository(
            RemoteRepositoryDefinition remoteRepositoryDefinition,
            String jasperReportsVersion); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String reportId); @Override String getDisplayName(String reportId); @Override String getEngine(String reportId); @Override InputStream getTemplateStream(String reportId); @Override String getRepositoryId(); @Override String getRepositoryName(); @Override String getRepositoryDescription(); @Override String getManagementUrl(); @Override void loadConfiguration();  }