Class AbstractAccessionRegisterAction
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.handler.AbstractAccessionRegisterAction
-
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,java.lang.AutoCloseable
- Direct Known Subclasses:
IngestAccessionRegisterActionHandler
,PreservationAccessionRegisterActionHandler
public abstract class AbstractAccessionRegisterAction extends ActionHandler implements VitamAutoCloseable
Accession Register Handler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractAccessionRegisterAction.AccessionRegisterInfo
-
Constructor Summary
Constructors Constructor Description AbstractAccessionRegisterAction()
AbstractAccessionRegisterAction(MetaDataClientFactory metaDataClientFactory, AdminManagementClientFactory adminManagementClientFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkMandatoryIOParameter(HandlerIO handler)
Check mandatory parametervoid
close()
ItemStatus
execute(WorkerParameters params, HandlerIO handler)
Execute an actionprotected abstract java.lang.String
getHandlerId()
protected abstract LogbookTypeProcess
getOperationType()
protected abstract void
prepareAccessionRegisterInformation(WorkerParameters params, HandlerIO handler, AbstractAccessionRegisterAction.AccessionRegisterInfo accessionRegisterInfo)
-
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, 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 Detail
-
AbstractAccessionRegisterAction
public AbstractAccessionRegisterAction()
-
AbstractAccessionRegisterAction
public AbstractAccessionRegisterAction(MetaDataClientFactory metaDataClientFactory, AdminManagementClientFactory adminManagementClientFactory)
-
-
Method Detail
-
execute
public ItemStatus execute(WorkerParameters params, HandlerIO handler)
Description copied from interface:WorkerAction
Execute an action- Specified by:
execute
in interfaceWorkerAction
- Parameters:
params
-WorkerParameters
handler
- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
-
getHandlerId
protected abstract java.lang.String getHandlerId()
-
prepareAccessionRegisterInformation
protected abstract void prepareAccessionRegisterInformation(WorkerParameters params, HandlerIO handler, AbstractAccessionRegisterAction.AccessionRegisterInfo accessionRegisterInfo) throws ProcessingException, InvalidParseOperationException
-
getOperationType
protected abstract LogbookTypeProcess getOperationType()
-
checkMandatoryIOParameter
public void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerAction
Check mandatory parameter- Specified by:
checkMandatoryIOParameter
in interfaceWorkerAction
- Parameters:
handler
- input output list- Throws:
ProcessingException
- when handler io is not complete
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
- Overrides:
close
in classActionHandler
-
-