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
,WorkerAction
,java.lang.AutoCloseable
public class CommitLifeCycleUnitActionHandler extends CommitLifeCycleActionHandler
CommitLifeCycleUnit Handler
-
-
Constructor Summary
Constructors Constructor Description CommitLifeCycleUnitActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStatus
buildFinalItemStatus(ItemStatus itemStatus)
Returns the final ItemStatus related to the current actionHandler execution based on a given onevoid
commitLifeCycle(HandlerIO handlerIO, java.lang.String objectID, java.lang.String operationId)
Runs a commit process for the given object (Unit or ObjectGroup) and a given operationstatic java.lang.String
getId()
ItemStatus
getItemStatus()
Returns an ItemStatus-
Methods 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
-
-
-
-
Method Detail
-
getId
public static final java.lang.String getId()
- Returns:
- HANDLER_ID
-
commitLifeCycle
public void commitLifeCycle(HandlerIO handlerIO, java.lang.String objectID, java.lang.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
public ItemStatus getItemStatus()
Description copied from class:CommitLifeCycleActionHandler
Returns an ItemStatus- Specified by:
getItemStatus
in classCommitLifeCycleActionHandler
- Returns:
- an ItemStatus
-
buildFinalItemStatus
public ItemStatus buildFinalItemStatus(ItemStatus itemStatus)
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
-
-