public class ReportDocumentService extends Object
ReportDocuments.| Modifier and Type | Field and Description |
|---|---|
private static ReportDocumentService |
instance
Singleton.
|
| Constructor and Description |
|---|
ReportDocumentService() |
private static final ReportDocumentService instance
public ReportDocumentService()
public static ReportDocumentService getInstance()
ReportDocumentService singleton.public void addReportDocument(ReportDocument reportDocument, ReportingContext reportingContext)
ReportDocument to the
ReportDocumentRepository.getReportDocuments() list.reportDocument - will be appended if it contains the ReportDocument.getReport() field,
else an exception will be thrown.reportingContext - the current statepublic void addAll(Collection<ReportDocument> reportDocuments, ReportingContext reportingContext)
ReportDocument to the
ReportDocumentRepository.getReportDocuments() list.reportDocuments - will be appended if all items contain the ReportDocument.getReport() field,
else an exception will be thrown.reportingContext - the current statepublic void addReportDocumentForAddition(ReportDocument reportDocument, ReportingContext reportingContext)
ReportDocument to the
ReportDocumentRepository.getReportDocumentsForAddition() list.reportDocument - will be appended if it contains the ReportDocument.getReport() field,
else an exception will be thrown.reportingContext - the current statepublic void mergeReportDocumentsForAddition(ReportingContext reportingContext)
ConcurrentModificationException a newly created ReportDocument is
appended to the ReportDocumentRepository.getReportDocumentsForAddition() collection.
The current method will move all ReportDocuments from ReportDocumentRepository.getReportDocumentsForAddition()
to ReportDocumentRepository.getReportDocuments().reportingContext - the current statepublic List<ReportDocument> getReportDocuments(Report report, ReportingContext reportingContext)
ReportDocuments with report from parameter.report - the ReportDocument.getReport() valuereportingContext - the current statepublic Set<NodeFile> getNodeFiles(List<ReportDocument> reportDocuments)
NodeFiles which belong to the ReportDocumentCopyright © 2023. All rights reserved.