Class LegacyLocalReportsDao
- java.lang.Object
-
- org.opennms.features.reporting.dao.LegacyLocalReportsDao
-
- All Implemented Interfaces:
LocalReportsDao
public class LegacyLocalReportsDao extends java.lang.Object implements LocalReportsDao
LegacyLocalReportsDao class.
Class realize the data access and preserve compatibility to database-reports.xml.- Since:
- 1.10.1
- Version:
- $Id: $
- Author:
- Markus Neumann
, Ronny Trommer
-
-
Constructor Summary
Constructors Constructor Description LegacyLocalReportsDao(org.springframework.core.io.Resource configResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.io.Resource
getConfigResource()
getConfigResourcejava.lang.String
getDisplayName(java.lang.String id)
getDisplayNameLegacyLocalReportsDefinition
getLegacyLocalReportsDefinition()
getLegacyLocalReportsDefinitionjava.util.List<BasicReportDefinition>
getOnlineReports()
getOnlineReportsjava.util.List<BasicReportDefinition>
getReports()
getReportsjava.lang.String
getReportService(java.lang.String id)
getReportServicevoid
loadConfiguration()
loadConfigurationvoid
setConfigResource(org.springframework.core.io.Resource configResource)
setLocalReportConfigResourcevoid
setLegacyLocalReportsDefinition(LegacyLocalReportsDefinition legacyLocalReportsDefinition)
setLegacyLocalReportsDefinition
-
-
-
Method Detail
-
loadConfiguration
public void loadConfiguration() throws java.lang.Exception
loadConfiguration
Load XML configuration and unmarshalling- Specified by:
loadConfiguration
in interfaceLocalReportsDao
- Throws:
java.lang.Exception
-
setConfigResource
public void setConfigResource(org.springframework.core.io.Resource configResource)
setLocalReportConfigResource
Set local report config resource for DAO- Specified by:
setConfigResource
in interfaceLocalReportsDao
- Parameters:
configResource
- aResource
object
-
getConfigResource
public org.springframework.core.io.Resource getConfigResource()
getConfigResource
Get local report configuration resource for DAO- Specified by:
getConfigResource
in interfaceLocalReportsDao
- Returns:
- a
Resource
object
-
getReports
public java.util.List<BasicReportDefinition> getReports()
getReports
- Specified by:
getReports
in interfaceLocalReportsDao
- Returns:
- a
List
object
-
getOnlineReports
public java.util.List<BasicReportDefinition> getOnlineReports()
getOnlineReports
- Specified by:
getOnlineReports
in interfaceLocalReportsDao
- Returns:
- a
List
object
-
getReportService
public java.lang.String getReportService(java.lang.String id)
getReportService
- Specified by:
getReportService
in interfaceLocalReportsDao
- Parameters:
id
- aString
object- Returns:
- a
String
object
-
getDisplayName
public java.lang.String getDisplayName(java.lang.String id)
getDisplayName
- Specified by:
getDisplayName
in interfaceLocalReportsDao
- Parameters:
id
- aString
object- Returns:
- a
String
object
-
setLegacyLocalReportsDefinition
public void setLegacyLocalReportsDefinition(LegacyLocalReportsDefinition legacyLocalReportsDefinition)
setLegacyLocalReportsDefinition
Set list with legacy report definition- Parameters:
legacyLocalReportsDefinition
-LegacyLocalReportsDefinition
object
-
getLegacyLocalReportsDefinition
public LegacyLocalReportsDefinition getLegacyLocalReportsDefinition()
getLegacyLocalReportsDefinition
Get list with legacy report definition- Returns:
- a
LegacyLocalReportsDefinition
object
-
-