public class DefaultGlobalReportRepository extends Object implements GlobalReportRepository
DefaultGlobalReportRepository class.
Class realize the global report repository. It provides access to a local-repository and all configured remote-repositories.Constructor and Description |
---|
DefaultGlobalReportRepository(RemoteRepositoryConfigDao remoteRepositoryConfigDao,
ReportRepository localReportRepository)
Default constructor creates one local-repository and all configured remote-repositories.
|
public DefaultGlobalReportRepository(RemoteRepositoryConfigDao remoteRepositoryConfigDao, ReportRepository localReportRepository)
public List<BasicReportDefinition> getAllReports()
getAllReports
in interface GlobalReportRepository
public List<BasicReportDefinition> getReports(String repositoryId)
getReports
in interface GlobalReportRepository
public List<BasicReportDefinition> getAllOnlineReports()
getAllOnlineReports
in interface GlobalReportRepository
public List<BasicReportDefinition> getOnlineReports(String repositoryId)
getOnlineReports
in interface GlobalReportRepository
public String getReportService(String reportId)
getReportService
in interface GlobalReportRepository
public String getDisplayName(String reportId)
getDisplayName
in interface GlobalReportRepository
public String getEngine(String reportId)
getEngine
in interface GlobalReportRepository
public InputStream getTemplateStream(String reportId)
getTemplateStream
in interface GlobalReportRepository
public List<ReportRepository> getRepositoryList()
getRepositoryList
in interface GlobalReportRepository
public void addReportRepository(ReportRepository repository)
addReportRepository
in interface GlobalReportRepository
repository
- a ReportRepositorypublic ReportRepository getRepositoryById(String repositoryId)
getRepositoryById
in interface GlobalReportRepository
repositoryId
- a String as repository identifierReportRepository
objectprotected ReportRepository getRepositoryForReport(String reportId)
reportId
- a String as report identifierReportRepository
objectpublic void setLocalReportRepository(ReportRepository reportRepository)
setLocalReportRepository
Set the legacy local repository which provides all OpenNMS community reportsreportRepository
- a LegacyLocalReportRepository
objectpublic ReportRepository getReportRepository()
getReportRepository
Get the legacy local repository which provides all OpenNMS community reportsLegacyLocalReportRepository
objectpublic void setRemoteRepositoryConfigDao(RemoteRepositoryConfigDao remoteRepositoryConfigDao)
setRemoteRepositoryConfigDao
Set the default remote report repository which provides access to OpenNMS CONNECT reportsremoteRepositoryConfigDao
- a DefaultRemoteRepository
objectpublic RemoteRepositoryConfigDao getRemoteRepositoryConfigDao()
getRemoteRepositoryConfigDao
Get config Dao for remote-repositoriesDefaultRemoteRepository
objectpublic void reloadConfigurationFiles()
reloadConfigurationFiles
in interface GlobalReportRepository
Copyright © 2020. All rights reserved.