Class LogbookLifecycleWorkerHelper
java.lang.Object
fr.gouv.vitam.worker.common.utils.LogbookLifecycleWorkerHelper
Helper for Worker handlers to handle Logbook Lifecycle at startup/at end
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
getObjectID
(WorkerParameters params) static void
updateLifeCycleForBegining
(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, LogbookTypeProcess logbookTypeProcess) static void
updateLifeCycleStep
(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, String lfcEventType, LogbookTypeProcess logbookTypeProcess, StatusCode statusCode, String... additionalParams)
-
Method Details
-
getObjectID
- Parameters:
params
- the worker parameter- Returns:
- the ObjectID as String
-
updateLifeCycleStep
public static void updateLifeCycleStep(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, String lfcEventType, LogbookTypeProcess logbookTypeProcess, StatusCode statusCode, String... additionalParams) throws ProcessingException - Parameters:
helper
- the LogbookLifeCyclesClientHelperlogbookLifecycleParameters
- the parameter of logbook lifecycleparams
- the worker parameterslfcEventType
- the event type of lfclogbookTypeProcess
- the logbook type processstatusCode
- the global status codeadditionalParams
- the additional params- Throws:
ProcessingException
- if logbook lfc ressouce not found
-
updateLifeCycleForBegining
public static void updateLifeCycleForBegining(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, LogbookTypeProcess logbookTypeProcess) throws ProcessingException - Parameters:
helper
- the LogbookLifeCyclesClientHelperlogbookLifecycleParameters
- the parameter of logbook lifecycleparams
- the parameters the worker parameters- Throws:
ProcessingException
- if logbook lfc ressouce not found
-