Class CommitLifeCycleObjectGroupActionHandler
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.handler.CommitLifeCycleActionHandler
fr.gouv.vitam.worker.core.handler.CommitLifeCycleObjectGroupActionHandler
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,AutoCloseable
CommitLifeCycleObjectGroup Handler
-
Constructor Summary
-
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, updateDetailItemStatus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
executeList
-
Constructor Details
-
CommitLifeCycleObjectGroupActionHandler
public CommitLifeCycleObjectGroupActionHandler()
-
-
Method Details
-
getId
- Returns:
- HANDLER_ID
-
commitLifeCycle
public void commitLifeCycle(HandlerIO handlerIO, String objectID, String operationId) throws 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:
LogbookClientBadRequestException
- 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
-