Class ReportGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean checkEntryName​(ReportEntryPlugin<?> plugin)  
      private boolean checkFilters​(ReportEntryPlugin<?> p, Filter filter)  
      private boolean checkSourceType​(ReportEntryPlugin<?> plugin, java.lang.Object source)  
      java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source)
      Generate a DTO report of the source object.
      java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source, java.lang.String filter)
      Generate a DTO report of the source object.
      java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source, java.util.Locale locale)
      Generate a DTO report of the source object, data will be localized for the specified locale if any.
      java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source, java.util.Locale locale, java.lang.String filter)
      Generate a DTO report of the source object, data will be localized for the specified locale if any.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _registry

        private final Registry _registry
      • _reporter

        private final Reporter _reporter
    • Constructor Detail

    • Method Detail

      • generateReportOf

        public java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source)
        Description copied from interface: ReportGeneratorService
        Generate a DTO report of the source object.
        Specified by:
        generateReportOf in interface ReportGeneratorService
        Parameters:
        source - the source object from which the report is generated, if null an empty report is returned.
        Returns:
        the report, never null
      • generateReportOf

        public java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source,
                                                                                       java.lang.String filter)
        Description copied from interface: ReportGeneratorService
        Generate a DTO report of the source object.
        Specified by:
        generateReportOf in interface ReportGeneratorService
        Parameters:
        source - the source object from which the report is generated, if null an empty report is returned.
        filter - a LDAP filter used to filter the ReportEntryPlugin plugins which will contribute to the report, if not specified all configured ReportEntryPlugin plugins that handle the source object type will contribute.
        Returns:
        the report, never null
      • generateReportOf

        public java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source,
                                                                                       java.util.Locale locale)
        Description copied from interface: ReportGeneratorService
        Generate a DTO report of the source object, data will be localized for the specified locale if any.
        Specified by:
        generateReportOf in interface ReportGeneratorService
        Parameters:
        source - the source object from which the report is generated, if null an empty report is returned.
        locale - a locale to localized extracted data, if not specified data will be unlocalized.
        Returns:
        the report, never null
      • generateReportOf

        public java.util.Map<java.lang.String,​java.lang.Object> generateReportOf​(java.lang.Object source,
                                                                                       java.util.Locale locale,
                                                                                       java.lang.String filter)
        Description copied from interface: ReportGeneratorService
        Generate a DTO report of the source object, data will be localized for the specified locale if any.
        Specified by:
        generateReportOf in interface ReportGeneratorService
        Parameters:
        source - the source object from which the report is generated, if null an empty report is returned.
        locale - a locale to localized extracted data, if not specified data will be unlocalized.
        filter - a LDAP filter used to filter the ReportEntryPlugin plugins which will contribute to the report, if not specified all configured ReportEntryPlugin plugins that handle the source object type will contribute.
        Returns:
        the report, never null
      • checkSourceType

        private boolean checkSourceType​(ReportEntryPlugin<?> plugin,
                                        java.lang.Object source)