Class CommitLifeCycleUnitActionHandler
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.handler.CommitLifeCycleActionHandler
fr.gouv.vitam.worker.core.handler.CommitLifeCycleUnitActionHandler
- All Implemented Interfaces:
VitamAutoCloseable
,AutoCloseable
CommitLifeCycleUnit Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildFinalItemStatus
(ItemStatus itemStatus) Returns the final ItemStatus related to the current actionHandler execution based on a given onevoid
commitLifeCycle
(HandlerIO handlerIO, String objectID, String operationId) Runs a commit process for the given object (Unit or ObjectGroup) and a given operationstatic final String
getId()
Returns an ItemStatusMethods inherited from class fr.gouv.vitam.worker.core.handler.CommitLifeCycleActionHandler
checkMandatoryIOParameter, execute
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, executeList, updateDetailItemStatus
-
Constructor Details
-
CommitLifeCycleUnitActionHandler
public CommitLifeCycleUnitActionHandler()
-
-
Method Details
-
getId
- Returns:
- HANDLER_ID
-
commitLifeCycle
public void commitLifeCycle(HandlerIO handlerIO, String objectID, String operationId) throws ProcessingException, LogbookClientBadRequestException, LogbookClientNotFoundException, LogbookClientServerException Description copied from class:CommitLifeCycleActionHandler
Runs a commit process for the given object (Unit or ObjectGroup) and a given operation- Specified by:
commitLifeCycle
in classCommitLifeCycleActionHandler
- 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
-
getItemStatus
Description copied from class:CommitLifeCycleActionHandler
Returns an ItemStatus- Specified by:
getItemStatus
in classCommitLifeCycleActionHandler
- Returns:
- an ItemStatus
-
buildFinalItemStatus
Description copied from class:CommitLifeCycleActionHandler
Returns the final ItemStatus related to the current actionHandler execution based on a given one- Specified by:
buildFinalItemStatus
in classCommitLifeCycleActionHandler
- Parameters:
itemStatus
- a given ItemStatus- Returns:
- the final ActionHandler ItemStatus
-