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.StringJSONL_EXTENSIONstatic java.lang.StringWORKSPACE_REPORT_URI
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommonReportService(ReportType reportType)protectedCommonReportService(ReportType reportType, BatchReportClientFactory batchReportClientFactory, WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendEntries(java.lang.String processId, java.util.List<T> entries)voidcleanupReport(java.lang.String processId)voiddeleteReportFromWorkspaceIfExists(java.lang.String processId)booleanisReportWrittenInWorkspace(java.lang.String processId)voidstoreReportToOffers(java.lang.String containerName)voidstoreReportToWorkspace(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
-
-