Class DefaultRemoteRepository
- java.lang.Object
-
- org.opennms.features.reporting.repository.remote.DefaultRemoteRepository
-
- All Implemented Interfaces:
ReportRepository
public class DefaultRemoteRepository extends Object implements ReportRepository
DefaultRemoteRepository class.
Implementation of OpenNMS CONNECT CIO Report repository- Since:
- 1.10.1
- Version:
- $Id: $
- Author:
- Markus Neumann
-
-
Constructor Summary
Constructors Constructor Description DefaultRemoteRepository(RemoteRepositoryDefinition remoteRepositoryDefinition, String jasperReportsVersion)
Default constructor to initialize the ReST HTTP client
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName(String reportId)
getDisplayNameString
getEngine(String reportId)
getEngineString
getManagementUrl()
getManagementUrlList<BasicReportDefinition>
getOnlineReports()
getOnlineReportsList<BasicReportDefinition>
getReports()
getReportsString
getReportService(String reportId)
getReportServiceString
getRepositoryDescription()
getRepositoryDescriptionString
getRepositoryId()
getRepositoryIdString
getRepositoryName()
getRepositoryNameInputStream
getTemplateStream(String reportId)
getTemplateStreamvoid
loadConfiguration()
-
-
-
Constructor Detail
-
DefaultRemoteRepository
public DefaultRemoteRepository(RemoteRepositoryDefinition remoteRepositoryDefinition, String jasperReportsVersion)
Default constructor to initialize the ReST HTTP client- Parameters:
remoteRepositoryDefinition
- aRemoteRepositoryDefinition
objectjasperReportsVersion
- aString
object
-
-
Method Detail
-
getReports
public List<BasicReportDefinition> getReports()
getReports
Get *ALL* reports from a report repository- Specified by:
getReports
in interfaceReportRepository
- Returns:
- a
List
object
-
getOnlineReports
public List<BasicReportDefinition> getOnlineReports()
getOnlineReports
Get all *ONLINE* reports from a report repository- Specified by:
getOnlineReports
in interfaceReportRepository
- Returns:
- a
List
object
-
getReportService
public String getReportService(String reportId)
getReportService
Get report service from a specific report by ID- Specified by:
getReportService
in interfaceReportRepository
- Parameters:
reportId
- aString
object- Returns:
- a
String
object
-
getDisplayName
public String getDisplayName(String reportId)
getDisplayName
Get display name from a specific report by ID- Specified by:
getDisplayName
in interfaceReportRepository
- Parameters:
reportId
- aString
object- Returns:
- a
String
object
-
getEngine
public String getEngine(String reportId)
getEngine
Get engine for database access from a specific report by ID- Specified by:
getEngine
in interfaceReportRepository
- Parameters:
reportId
- aString
object- Returns:
- a
String
object
-
getTemplateStream
public InputStream getTemplateStream(String reportId)
getTemplateStream
Get report template stream from a specific report by ID- Specified by:
getTemplateStream
in interfaceReportRepository
- Parameters:
reportId
- aString
object- Returns:
- a
InputStream
object
-
getRepositoryId
public String getRepositoryId()
getRepositoryId
Get report repository ID- Specified by:
getRepositoryId
in interfaceReportRepository
- Returns:
- a
String
object
-
getRepositoryName
public String getRepositoryName()
getRepositoryName
Get report repository name- Specified by:
getRepositoryName
in interfaceReportRepository
- Returns:
- a
String
object
-
getRepositoryDescription
public String getRepositoryDescription()
getRepositoryDescription
Get report repository description- Specified by:
getRepositoryDescription
in interfaceReportRepository
- Returns:
- a
String
object
-
getManagementUrl
public String getManagementUrl()
getManagementUrl
Get repository management URL for subscription services- Specified by:
getManagementUrl
in interfaceReportRepository
- Returns:
- a
String
object
-
loadConfiguration
public void loadConfiguration()
- Specified by:
loadConfiguration
in interfaceReportRepository
-
-