Class ResourceReportDescriptionLoader
java.lang.Object
ch.tocco.nice2.reporting.impl.description.ResourceReportDescriptionLoader
- All Implemented Interfaces:
ReportDescriptionLoader
@Component
public class ResourceReportDescriptionLoader
extends Object
implements ReportDescriptionLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.reporting.api.description.ReportDescriptionLoader
ReportDescriptionLoader.ReportDescriptionNotFoundException
-
Constructor Summary
ConstructorDescriptionResourceReportDescriptionLoader
(ModuleManager moduleManager, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionSet
<? extends ReportDescription> Get allReportDescription
s the loader can access.getReportDescription
(String id, @Nullable PrimaryKey labelKey) Get aReportDescription
object for the provided idvoid
setReportSources
(List<ReportContributionsBuilder> sources) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.reporting.api.description.ReportDescriptionLoader
getReportDescription
-
Constructor Details
-
ResourceReportDescriptionLoader
-
-
Method Details
-
getReportDescription
public ReportDescription getReportDescription(String id, @Nullable @Nullable PrimaryKey labelKey) throws ReportDescriptionLoader.ReportDescriptionNotFoundException Description copied from interface:ReportDescriptionLoader
Get aReportDescription
object for the provided id- Specified by:
getReportDescription
in interfaceReportDescriptionLoader
- Parameters:
id
- a report id- Returns:
- the corresponding
ReportDescription
object - Throws:
ReportDescriptionLoader.ReportDescriptionNotFoundException
-
getAllReportDescriptions
Description copied from interface:ReportDescriptionLoader
Get allReportDescription
s the loader can access.- Specified by:
getAllReportDescriptions
in interfaceReportDescriptionLoader
- Returns:
- a set of
ReportDescription
-
setReportSources
-