public abstract class CommitLifeCycleActionHandler extends ActionHandler
Constructor and Description |
---|
CommitLifeCycleActionHandler()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract ItemStatus |
buildFinalItemStatus(ItemStatus itemStatus)
Returns the final ItemStatus related to the current actionHandler execution based on a given one
|
void |
checkMandatoryIOParameter(HandlerIO handler)
Check mandatory parameter
|
abstract void |
commitLifeCycle(HandlerIO handlerIO,
String objectID,
String operationId)
Runs a commit process for the given object (Unit or ObjectGroup) and a given operation
|
ItemStatus |
execute(WorkerParameters params,
HandlerIO param)
Execute an action
|
abstract ItemStatus |
getItemStatus()
Returns an ItemStatus
|
checkMandatoryParameters, close, updateDetailItemStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lfcHandledInternally
public CommitLifeCycleActionHandler()
public ItemStatus execute(WorkerParameters params, HandlerIO param)
WorkerAction
params
- WorkerParameters
param
- the handlerIopublic abstract ItemStatus getItemStatus()
public abstract ItemStatus buildFinalItemStatus(ItemStatus itemStatus)
itemStatus
- a given ItemStatuspublic abstract void commitLifeCycle(HandlerIO handlerIO, String objectID, String operationId) throws ProcessingException, LogbookClientBadRequestException, LogbookClientNotFoundException, LogbookClientServerException
handlerIO
- a HandlerIO instanceobjectID
- the object id to commitoperationId
- the operation idProcessingException
- 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 lifecyclepublic void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
WorkerAction
handler
- input output listProcessingException
- when handler io is not completeCopyright © 2018 Vitam. All rights reserved.