Package fr.gouv.vitam.worker.core.utils
Class PluginHelper
- java.lang.Object
-
- fr.gouv.vitam.worker.core.utils.PluginHelper
-
public class PluginHelper extends java.lang.Object
Basic helper methods for reclassification plugins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginHelper.EventDetails
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ItemStatus>
buildBulkItemStatus(WorkerParameters param, java.lang.String action, StatusCode statusCode)
static <TEventDetails>
java.util.List<ItemStatus>buildBulkItemStatus(WorkerParameters param, java.lang.String action, StatusCode statusCode, TEventDetails eventDetails)
static ItemStatus
buildItemStatus(java.lang.String action, StatusCode statusCode)
static <TEventDetails>
ItemStatusbuildItemStatus(java.lang.String action, StatusCode statusCode, TEventDetails eventDetails)
static <T> ItemStatus
buildItemStatusSubItems(java.lang.String itemId, java.util.stream.Stream<java.lang.String> subItemIds, StatusCode statusCode, T eventDetails)
static <TEventDetails>
ItemStatusbuildItemStatusWithMasterData(java.lang.String action, StatusCode statusCode, TEventDetails eventDetails, java.lang.Object masterDataValue)
static ItemStatus
buildItemStatusWithMessage(java.lang.String action, StatusCode statusCode, java.lang.String message)
static <TEventDetails>
LogbookLifeCycleUnitParameterscreateParameters(GUID eventIdentifierProcess, StatusCode logbookOutcome, GUID objectIdentifier, java.lang.String action, TEventDetails eventDetails, LogbookTypeProcess logbookTypeProcess)
static java.io.InputStream
createUnitsByGotFile(MetaDataClient metaDataClient, DeleteGotVersionsRequest deleteGotVersionsRequest, HandlerIO handler)
static com.fasterxml.jackson.databind.node.ObjectNode
eventDetails(java.lang.Throwable e)
static java.util.Map<java.lang.String,ObjectGroupResponse>
getObjectGroups(java.lang.String[] gotIds, MetaDataClient metadataClient)
-
-
-
Method Detail
-
buildItemStatus
public static ItemStatus buildItemStatus(java.lang.String action, StatusCode statusCode)
-
buildItemStatus
public static <TEventDetails> ItemStatus buildItemStatus(java.lang.String action, StatusCode statusCode, TEventDetails eventDetails)
-
buildItemStatusWithMessage
public static ItemStatus buildItemStatusWithMessage(java.lang.String action, StatusCode statusCode, java.lang.String message)
-
buildItemStatusWithMasterData
public static <TEventDetails> ItemStatus buildItemStatusWithMasterData(java.lang.String action, StatusCode statusCode, TEventDetails eventDetails, java.lang.Object masterDataValue)
-
buildItemStatusSubItems
public static <T> ItemStatus buildItemStatusSubItems(java.lang.String itemId, java.util.stream.Stream<java.lang.String> subItemIds, StatusCode statusCode, T eventDetails)
-
eventDetails
public static com.fasterxml.jackson.databind.node.ObjectNode eventDetails(java.lang.Throwable e)
-
buildBulkItemStatus
public static java.util.List<ItemStatus> buildBulkItemStatus(WorkerParameters param, java.lang.String action, StatusCode statusCode)
-
buildBulkItemStatus
public static <TEventDetails> java.util.List<ItemStatus> buildBulkItemStatus(WorkerParameters param, java.lang.String action, StatusCode statusCode, TEventDetails eventDetails)
-
createParameters
public static <TEventDetails> LogbookLifeCycleUnitParameters createParameters(GUID eventIdentifierProcess, StatusCode logbookOutcome, GUID objectIdentifier, java.lang.String action, TEventDetails eventDetails, LogbookTypeProcess logbookTypeProcess)
-
createUnitsByGotFile
public static java.io.InputStream createUnitsByGotFile(MetaDataClient metaDataClient, DeleteGotVersionsRequest deleteGotVersionsRequest, HandlerIO handler) throws VitamException
- Throws:
VitamException
-
getObjectGroups
public static java.util.Map<java.lang.String,ObjectGroupResponse> getObjectGroups(java.lang.String[] gotIds, MetaDataClient metadataClient) throws ProcessingException
- Throws:
ProcessingException
-
-