Class PurgeUnitPlugin
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.plugin.purge.PurgeUnitPlugin
- All Implemented Interfaces:
VitamAutoCloseable,AutoCloseable
- Direct Known Subclasses:
PurgeUnitCollectPlugin,PurgeUnitVitamPlugin
Purge unit plugin.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionPurgeUnitPlugin(String actionId) Default constructorprotectedPurgeUnitPlugin(String actionId, PurgeReportService purgeReportService, LogbookLifeCyclesClientFactory llfcClientFactory) Test only constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMandatoryIOParameter(HandlerIO handler) Check mandatory parameterprotected abstract voiddeleteUnit(Map<String, com.fasterxml.jackson.databind.JsonNode> unitsById, Set<String> unitsToDelete, HandlerIO handler) execute(WorkerParameters param, HandlerIO handler) Execute an actionexecuteList(WorkerParameters param, HandlerIO handler) protected static List<PersistentIdentifierModel>extractPersistentIdentifiersFromUnit(com.fasterxml.jackson.databind.JsonNode unit) protected static PersistentIdentifierModelmapJsonToPersistentIdentifierModel(com.fasterxml.jackson.databind.JsonNode identifierNode) Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatus
-
Field Details
-
ARCHIVAL_AGENCY_IDENTIFIER
- See Also:
-
-
Constructor Details
-
PurgeUnitPlugin
Default constructor- Parameters:
actionId-
-
PurgeUnitPlugin
protected PurgeUnitPlugin(String actionId, PurgeReportService purgeReportService, LogbookLifeCyclesClientFactory llfcClientFactory) Test only constructor
-
-
Method Details
-
execute
Description copied from class:ActionHandlerExecute an action- Overrides:
executein classActionHandler- Parameters:
param-WorkerParametershandler- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
- Throws:
ProcessingException- if an error is encountered when executing the action
-
executeList
- Overrides:
executeListin classActionHandler- Returns:
-
deleteUnit
protected abstract void deleteUnit(Map<String, com.fasterxml.jackson.databind.JsonNode> unitsById, Set<String> unitsToDelete, HandlerIO handler) throws ProcessingStatusException- Throws:
ProcessingStatusException
-
extractPersistentIdentifiersFromUnit
protected static List<PersistentIdentifierModel> extractPersistentIdentifiersFromUnit(com.fasterxml.jackson.databind.JsonNode unit) -
mapJsonToPersistentIdentifierModel
protected static PersistentIdentifierModel mapJsonToPersistentIdentifierModel(com.fasterxml.jackson.databind.JsonNode identifierNode) -
checkMandatoryIOParameter
Description copied from class:ActionHandlerCheck mandatory parameter- Overrides:
checkMandatoryIOParameterin classActionHandler- Parameters:
handler- input output list- Throws:
ProcessingException- when handler io is not complete
-