Class LegacyLocalReportRepository

  • All Implemented Interfaces:
    ReportRepository

    public class LegacyLocalReportRepository
    extends java.lang.Object
    implements ReportRepository

    LegacyLocalReportRepository class.

    Class realize the local repository for OpenNMS community reports.

    Since:
    1.10.1
    Version:
    $Id: $
    Author:
    Markus Neumann , Ronny Trommer
    • Method Detail

      • getReportService

        public java.lang.String getReportService​(java.lang.String id)

        getReportService

        Get report service from a specific report by ID
        Specified by:
        getReportService in interface ReportRepository
        Parameters:
        id - a String object
        Returns:
        a String object
      • getDisplayName

        public java.lang.String getDisplayName​(java.lang.String id)

        getDisplayName

        Get display name from a specific report by ID
        Specified by:
        getDisplayName in interface ReportRepository
        Parameters:
        id - a String object
        Returns:
        a String object
      • getEngine

        public java.lang.String getEngine​(java.lang.String id)

        getEngine

        Get engine for database access from a specific report by ID
        Specified by:
        getEngine in interface ReportRepository
        Parameters:
        id - a String object
        Returns:
        a String object
      • getTemplateStream

        public java.io.InputStream getTemplateStream​(java.lang.String id)

        getTemplateStream

        Get report template stream from a specific report by ID
        Specified by:
        getTemplateStream in interface ReportRepository
        Parameters:
        id - a String object
        Returns:
        a InputStream object
      • getRepositoryId

        public java.lang.String getRepositoryId()

        getRepositoryId

        Get report repository ID
        Specified by:
        getRepositoryId in interface ReportRepository
        Returns:
        a String object
      • getRepositoryName

        public java.lang.String getRepositoryName()

        getRepositoryName

        Get report repository name
        Specified by:
        getRepositoryName in interface ReportRepository
        Returns:
        a String object
      • getRepositoryDescription

        public java.lang.String getRepositoryDescription()

        getRepositoryDescription

        Get report repository description
        Specified by:
        getRepositoryDescription in interface ReportRepository
        Returns:
        a String object
      • getManagementUrl

        public java.lang.String getManagementUrl()

        getManagementUrl

        Get repository management URL for subscription services
        Specified by:
        getManagementUrl in interface ReportRepository
        Returns:
        a String object
      • setLocalReportsDao

        public void setLocalReportsDao​(LocalReportsDao localReportsDao)

        setLocalReportsDao

        Set local reports DAO to access database-reports.xml

        Parameters:
        localReportsDao - a LocalReportsDao object
      • getLocalReportsDao

        public LocalReportsDao getLocalReportsDao()

        getLocalReportsDao

        Get local reports DAO to access database-reports.xml

        Returns:
        a LocalReportsDao object
      • setLocalJasperReportsDao

        public void setLocalJasperReportsDao​(LocalJasperReportsDao localJasperReportsDao)

        setLocalJasperReportsDao

        Set local jasper reports dao to access jasper-reports.xml

        Parameters:
        localJasperReportsDao - a LocalJasperReportsDao object