Class ProcessPopulator
- java.lang.Object
-
- fr.gouv.vitam.processing.management.core.ProcessPopulator
-
public class ProcessPopulator extends java.lang.Object
Temporary process populatorfind and populates workflow java object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadWorkflow(java.util.Map<java.lang.String,WorkFlow> poolWorkflows)
loadWorkflow, find and load all workflowsstatic java.util.Optional<WorkFlow>
populate(java.io.InputStream workflowFileStream)
populate, create workflow object (parse JSON file)static java.util.Optional<WorkFlow>
populate(java.lang.String workflowFile)
static void
reloadWorkflow(java.util.Map<java.lang.String,WorkFlow> poolWorkflows, java.lang.Long fromDate)
reloadWorkflow, find and load new (added) workflow objects
-
-
-
Method Detail
-
loadWorkflow
public static void loadWorkflow(java.util.Map<java.lang.String,WorkFlow> poolWorkflows)
loadWorkflow, find and load all workflows- Parameters:
poolWorkflows
- map to populate with workflows
-
reloadWorkflow
public static void reloadWorkflow(java.util.Map<java.lang.String,WorkFlow> poolWorkflows, java.lang.Long fromDate)
reloadWorkflow, find and load new (added) workflow objects- Parameters:
poolWorkflows
- poolWorkflows map of workflows to updatefromDate
- datetime on milliseconds to filter from, if null no filter is applied
-
populate
public static java.util.Optional<WorkFlow> populate(java.io.InputStream workflowFileStream)
populate, create workflow object (parse JSON file)- Parameters:
workflowFileStream
- the workflow file (path)- Returns:
- workflow's object
-
populate
public static java.util.Optional<WorkFlow> populate(java.lang.String workflowFile)
-
-