Class LogbookLifecycleWorkerHelper
- java.lang.Object
-
- fr.gouv.vitam.worker.common.utils.LogbookLifecycleWorkerHelper
-
public class LogbookLifecycleWorkerHelper extends java.lang.Object
Helper for Worker handlers to handle Logbook Lifecycle at startup/at end
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getObjectID(WorkerParameters params)
static void
updateLifeCycleForBegining(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, LogbookTypeProcess logbookTypeProcess)
static void
updateLifeCycleStep(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, java.lang.String lfcEventType, LogbookTypeProcess logbookTypeProcess, StatusCode statusCode, java.lang.String... additionalParams)
-
-
-
Method Detail
-
getObjectID
public static final java.lang.String getObjectID(WorkerParameters params)
- Parameters:
params
- the worker parameter- Returns:
- the ObjectID as String
-
updateLifeCycleStep
public static void updateLifeCycleStep(LogbookLifeCyclesClientHelper helper, LogbookLifeCycleParameters logbookLifecycleParameters, WorkerParameters params, java.lang.String lfcEventType, LogbookTypeProcess logbookTypeProcess, StatusCode statusCode, java.lang.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
-
-