Class ExtractSedaActionHandler
- java.lang.Object
-
- fr.gouv.vitam.worker.core.handler.ActionHandler
-
- fr.gouv.vitam.worker.core.handler.ExtractSedaActionHandler
-
- All Implemented Interfaces:
VitamAutoCloseable
,WorkerAction
,java.lang.AutoCloseable
public class ExtractSedaActionHandler extends ActionHandler
Handler class used to extract metaData. Create and put a new file (metadata extracted) json.json into container GUID
-
-
Field Summary
Fields Modifier and Type Field Description static int
OG_ID_TO_GUID_IO_MEMORY_RANK
static int
OG_ID_TO_UNID_ID_IO_RANK
static java.lang.String
SUBTASK_ATTACHMENT_REQUIRED
static java.lang.String
SUBTASK_EMPTY_KEY_ATTACHMENT
static java.lang.String
SUBTASK_ERROR_PARSE_ATTACHMENT
static java.lang.String
SUBTASK_INVALID_GUID_ATTACHMENT
static java.lang.String
SUBTASK_MODIFY_PARENT_EXISTING_UNIT_UNAUTHORIZED
static java.lang.String
SUBTASK_NOT_FOUND_ATTACHMENT
static java.lang.String
SUBTASK_NULL_LINK_PARENT_ID_ATTACHMENT
static java.lang.String
SUBTASK_TOO_MANY_FOUND_ATTACHMENT
static java.lang.String
SUBTASK_TOO_MANY_VERSION_BY_USAGE
static java.lang.String
SUBTASK_UNAUTHORIZED_ATTACHMENT
static java.lang.String
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_BAD_SP
static java.lang.String
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_CONTRACT
-
Constructor Summary
Constructors Constructor Description ExtractSedaActionHandler()
Constructor with parameter SedaUtilsFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMandatoryIOParameter(HandlerIO handler)
Check mandatory parameterItemStatus
execute(WorkerParameters params, HandlerIO handlerIO)
Execute an actionstatic java.lang.String
getId()
-
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, 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
-
-
-
-
Field Detail
-
OG_ID_TO_UNID_ID_IO_RANK
public static final int OG_ID_TO_UNID_ID_IO_RANK
- See Also:
- Constant Field Values
-
OG_ID_TO_GUID_IO_MEMORY_RANK
public static final int OG_ID_TO_GUID_IO_MEMORY_RANK
- See Also:
- Constant Field Values
-
SUBTASK_ERROR_PARSE_ATTACHMENT
public static final java.lang.String SUBTASK_ERROR_PARSE_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_EMPTY_KEY_ATTACHMENT
public static final java.lang.String SUBTASK_EMPTY_KEY_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_NULL_LINK_PARENT_ID_ATTACHMENT
public static final java.lang.String SUBTASK_NULL_LINK_PARENT_ID_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_TOO_MANY_FOUND_ATTACHMENT
public static final java.lang.String SUBTASK_TOO_MANY_FOUND_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_TOO_MANY_VERSION_BY_USAGE
public static final java.lang.String SUBTASK_TOO_MANY_VERSION_BY_USAGE
- See Also:
- Constant Field Values
-
SUBTASK_NOT_FOUND_ATTACHMENT
public static final java.lang.String SUBTASK_NOT_FOUND_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_ATTACHMENT_REQUIRED
public static final java.lang.String SUBTASK_ATTACHMENT_REQUIRED
- See Also:
- Constant Field Values
-
SUBTASK_UNAUTHORIZED_ATTACHMENT
public static final java.lang.String SUBTASK_UNAUTHORIZED_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_CONTRACT
public static final java.lang.String SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_CONTRACT
- See Also:
- Constant Field Values
-
SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_BAD_SP
public static final java.lang.String SUBTASK_UNAUTHORIZED_ATTACHMENT_BY_BAD_SP
- See Also:
- Constant Field Values
-
SUBTASK_INVALID_GUID_ATTACHMENT
public static final java.lang.String SUBTASK_INVALID_GUID_ATTACHMENT
- See Also:
- Constant Field Values
-
SUBTASK_MODIFY_PARENT_EXISTING_UNIT_UNAUTHORIZED
public static final java.lang.String SUBTASK_MODIFY_PARENT_EXISTING_UNIT_UNAUTHORIZED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public static java.lang.String getId()
- Returns:
- HANDLER_ID
-
execute
public ItemStatus execute(WorkerParameters params, HandlerIO handlerIO)
Description copied from interface:WorkerAction
Execute an action- Parameters:
params
-WorkerParameters
handlerIO
- the handlerIo- Returns:
- CompositeItemStatus:response contains a list of functional message and status code
-
checkMandatoryIOParameter
public void checkMandatoryIOParameter(HandlerIO handler) throws ProcessingException
Description copied from interface:WorkerAction
Check mandatory parameter- Parameters:
handler
- input output list- Throws:
ProcessingException
- when handler io is not complete
-
-