Package fr.gouv.vitam.worker.core.plugin
Class CommonReportService<T>
- java.lang.Object
-
- fr.gouv.vitam.worker.core.plugin.CommonReportService<T>
-
- Direct Known Subclasses:
AuditReportService
,DeleteGotVersionsReportService
,EliminationActionReportService
,EvidenceAuditReportService
,PreservationReportService
,TraceabilityReportService
,TransferReplyReportService
public abstract class CommonReportService<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JSONL_EXTENSION
static java.lang.String
WORKSPACE_REPORT_URI
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommonReportService(ReportType reportType)
protected
CommonReportService(ReportType reportType, BatchReportClientFactory batchReportClientFactory, WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendEntries(java.lang.String processId, java.util.List<T> entries)
void
cleanupReport(java.lang.String processId)
void
deleteReportFromWorkspaceIfExists(java.lang.String processId)
boolean
isReportWrittenInWorkspace(java.lang.String processId)
void
storeReportToOffers(java.lang.String containerName)
void
storeReportToWorkspace(Report reportInfo)
-
-
-
Field Detail
-
JSONL_EXTENSION
public static final java.lang.String JSONL_EXTENSION
- See Also:
- Constant Field Values
-
WORKSPACE_REPORT_URI
public static final java.lang.String WORKSPACE_REPORT_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonReportService
protected CommonReportService(ReportType reportType)
-
CommonReportService
protected CommonReportService(ReportType reportType, BatchReportClientFactory batchReportClientFactory, WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
-
Method Detail
-
appendEntries
public void appendEntries(java.lang.String processId, java.util.List<T> entries) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
isReportWrittenInWorkspace
public boolean isReportWrittenInWorkspace(java.lang.String processId) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
deleteReportFromWorkspaceIfExists
public void deleteReportFromWorkspaceIfExists(java.lang.String processId) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
storeReportToWorkspace
public void storeReportToWorkspace(Report reportInfo) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
storeReportToOffers
public void storeReportToOffers(java.lang.String containerName) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
cleanupReport
public void cleanupReport(java.lang.String processId) throws ProcessingStatusException
- Throws:
ProcessingStatusException
-
-