public class MassUpdateUnitsProcess extends StoreMetadataObjectActionHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
MASS_UPDATE_UNITS |
static String |
STRATEGY_ID |
DEFAULT_STRATEGY| Constructor and Description |
|---|
MassUpdateUnitsProcess() |
MassUpdateUnitsProcess(MetaDataClientFactory metaDataClientFactory,
LogbookLifeCyclesClientFactory lfcClientFactory,
StorageClientFactory storageClientFactory,
BatchReportClientFactory batchReportClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
ItemStatus |
execute(WorkerParameters param,
HandlerIO handler)
Execute an action
|
List<ItemStatus> |
executeList(WorkerParameters workerParameters,
HandlerIO handler) |
protected void |
storeUnitAndLfcToOffer(MetaDataClient mdClient,
LogbookLifeCyclesClient lfcClient,
StorageClient storageClient,
HandlerIO handler,
WorkerParameters params,
String guid,
String fileName)
Store Unit with LFC by storing UNIT+LFC in workspace then storing in offers.
|
getRawLogbookLifeCycleById, selectMetadataDocumentRawByIddetailsFromStorageInfo, storeObject, storeStorageInfocheckMandatoryParameters, close, updateDetailItemStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckMandatoryIOParameterpublic static final String MASS_UPDATE_UNITS
public static final String STRATEGY_ID
public MassUpdateUnitsProcess()
public MassUpdateUnitsProcess(MetaDataClientFactory metaDataClientFactory, LogbookLifeCyclesClientFactory lfcClientFactory, StorageClientFactory storageClientFactory, BatchReportClientFactory batchReportClientFactory)
public ItemStatus execute(WorkerParameters param, HandlerIO handler) throws ProcessingException, ContentAddressableStorageServerException
param - WorkerParametershandler - the handlerIoProcessingException - if an error is encountered when executing the actionContentAddressableStorageServerException - if a storage exception is encountered when executing the actionpublic List<ItemStatus> executeList(WorkerParameters workerParameters, HandlerIO handler) throws ProcessingException
ProcessingExceptionprotected void storeUnitAndLfcToOffer(MetaDataClient mdClient, LogbookLifeCyclesClient lfcClient, StorageClient storageClient, HandlerIO handler, WorkerParameters params, String guid, String fileName) throws VitamException
mdClient - metadataClientlfcClient - logbook lifecycle clientstorageClient - storage clienthandler - handler IOparams - handler parametersguid - unit guidfileName - stored unit file nameVitamException - when an error occursCopyright © 2020 Vitam. All rights reserved.