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
ConstructorsConstructorDescriptionResourceReportDescriptionLoader(ModuleManager moduleManager, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionSet<? extends ReportDescription> Get allReportDescriptions the loader can access.getReportDescription(String id, @Nullable PrimaryKey labelKey) Get aReportDescriptionobject for the provided idvoidsetReportSources(List<ReportContributionsBuilder> sources) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ReportDescriptionLoaderGet aReportDescriptionobject for the provided id- Specified by:
getReportDescriptionin interfaceReportDescriptionLoader- Parameters:
id- a report id- Returns:
- the corresponding
ReportDescriptionobject - Throws:
ReportDescriptionLoader.ReportDescriptionNotFoundException
-
getAllReportDescriptions
Description copied from interface:ReportDescriptionLoaderGet allReportDescriptions the loader can access.- Specified by:
getAllReportDescriptionsin interfaceReportDescriptionLoader- Returns:
- a set of
ReportDescription
-
setReportSources
-