public class ExtractSedaActionHandler extends ActionHandler
Modifier and Type | Field and Description |
---|---|
static int |
OG_ID_TO_GUID_IO_MEMORY_RANK |
static int |
OG_ID_TO_UNID_ID_IO_RANK |
static String |
SUBTASK_ATTACHMENT_REQUIRED |
static String |
SUBTASK_EMPTY_KEY_ATTACHMENT |
static String |
SUBTASK_ERROR_PARSE_ATTACHMENT |
static String |
SUBTASK_INVALID_GUID_ATTACHMENT |
static String |
SUBTASK_MODIFY_PARENT_EXISTING_UNIT_UNAUTHORIZED |
static String |
SUBTASK_NOT_FOUND_ATTACHMENT |
static String |
SUBTASK_NULL_LINK_PARENT_ID_ATTACHMENT |
static String |
SUBTASK_TOO_MANY_FOUND_ATTACHMENT |
static String |
SUBTASK_TOO_MANY_VERSION_BY_USAGE |
static String |
SUBTASK_UNAUTHORIZED_ATTACHMENT |
static String |
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_BAD_SP |
static String |
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_CONTRACT |
Constructor and Description |
---|
ExtractSedaActionHandler()
Constructor with parameter SedaUtilsFactory
|
Modifier and Type | Method and Description |
---|---|
void |
checkMandatoryIOParameter(HandlerIO handler)
Check mandatory parameter
|
ItemStatus |
execute(WorkerParameters params,
HandlerIO ioParam)
Execute an action
|
com.fasterxml.jackson.databind.node.ObjectNode |
extractSEDA(LogbookLifeCyclesClient logbookLifeCycleClient,
WorkerParameters params,
ItemStatus globalCompositeItemStatus,
UnitType workflowUnitType)
Split Element from InputStream and write it to workspace
|
HandlerIO |
getHandlerIO() |
static String |
getId() |
checkMandatoryParameters, close, updateDetailItemStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeList
public static final int OG_ID_TO_UNID_ID_IO_RANK
public static final int OG_ID_TO_GUID_IO_MEMORY_RANK
public static final String SUBTASK_ERROR_PARSE_ATTACHMENT
public static final String SUBTASK_EMPTY_KEY_ATTACHMENT
public static final String SUBTASK_NULL_LINK_PARENT_ID_ATTACHMENT
public static final String SUBTASK_TOO_MANY_FOUND_ATTACHMENT
public static final String SUBTASK_TOO_MANY_VERSION_BY_USAGE
public static final String SUBTASK_NOT_FOUND_ATTACHMENT
public static final String SUBTASK_ATTACHMENT_REQUIRED
public static final String SUBTASK_UNAUTHORIZED_ATTACHMENT
public static final String SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_CONTRACT
public static final String SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_BAD_SP
public static final String SUBTASK_INVALID_GUID_ATTACHMENT
public static final String SUBTASK_MODIFY_PARENT_EXISTING_UNIT_UNAUTHORIZED
public ExtractSedaActionHandler()
public static String getId()
public HandlerIO getHandlerIO()
public ItemStatus execute(WorkerParameters params, HandlerIO ioParam)
WorkerAction
params
- WorkerParameters
ioParam
- the handlerIopublic com.fasterxml.jackson.databind.node.ObjectNode extractSEDA(LogbookLifeCyclesClient logbookLifeCycleClient, WorkerParameters params, ItemStatus globalCompositeItemStatus, UnitType workflowUnitType) throws ProcessingException, CycleFoundException
logbookLifeCycleClient
- params
- parameters of workspace serverglobalCompositeItemStatus
- the global statusworkflowUnitType
- ProcessingException
- throw when can't read or extract element from SEDACycleFoundException
- when a cycle is found in data extractpublic void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
WorkerAction
handler
- input output listProcessingException
- when handler io is not completeCopyright © 2019 Vitam. All rights reserved.