Class CommitLifeCycleActionHandler
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.handler.CommitLifeCycleActionHandler
- All Implemented Interfaces:
VitamAutoCloseable
,AutoCloseable
- Direct Known Subclasses:
CommitLifeCycleObjectGroupActionHandler
,CommitLifeCycleUnitActionHandler
CommitLifeCycle Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ItemStatus
buildFinalItemStatus
(ItemStatus itemStatus) Returns the final ItemStatus related to the current actionHandler execution based on a given onevoid
checkMandatoryIOParameter
(HandlerIO handler) Check mandatory parameterabstract void
commitLifeCycle
(HandlerIO handlerIO, String objectID, String operationId) Runs a commit process for the given object (Unit or ObjectGroup) and a given operationexecute
(WorkerParameters params, HandlerIO handlerIO) Execute an actionabstract ItemStatus
Returns an ItemStatusMethods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, executeList, updateDetailItemStatus
-
Constructor Details
-
CommitLifeCycleActionHandler
public CommitLifeCycleActionHandler()Default Constructor
-
-
Method Details
-
execute
Description copied from class:ActionHandler
Execute an action- Overrides:
execute
in classActionHandler
- Parameters:
params
-WorkerParameters
handlerIO
- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
-
getItemStatus
Returns an ItemStatus- Returns:
- an ItemStatus
-
buildFinalItemStatus
Returns the final ItemStatus related to the current actionHandler execution based on a given one- Parameters:
itemStatus
- a given ItemStatus- Returns:
- the final ActionHandler ItemStatus
-
commitLifeCycle
public abstract void commitLifeCycle(HandlerIO handlerIO, String objectID, String operationId) throws ProcessingException, LogbookClientBadRequestException, LogbookClientNotFoundException, LogbookClientServerException Runs a commit process for the given object (Unit or ObjectGroup) and a given operation- Parameters:
handlerIO
- a HandlerIO instanceobjectID
- the object id to commitoperationId
- the operation id- Throws:
ProcessingException
- if processing exception occurred when commit unit lifecycleLogbookClientBadRequestException
- if the argument is incorrect when commit unit lifecycleLogbookClientNotFoundException
- if the element was not created before when commit unit lifecycleLogbookClientServerException
- if the Server got an internal error when commit unit lifecycle
-
checkMandatoryIOParameter
Description copied from class:ActionHandler
Check mandatory parameter- Overrides:
checkMandatoryIOParameter
in classActionHandler
- Parameters:
handler
- input output list- Throws:
ProcessingException
- when handler io is not complete
-