Class WorkflowJsonService
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.service.json.WorkflowJsonService
-
public class WorkflowJsonService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static WorkflowJsonServiceINSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowJsonServicegetInstance()intimportWorkflow(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflow, Locale locale)StringjsonExportWorkflow(int idWorkflow)Export the workflow as a Json Object.voidjsonImportWorkflow(String json, Locale locale)
-
-
-
Field Detail
-
INSTANCE
public static final WorkflowJsonService INSTANCE
-
-
Method Detail
-
getInstance
public static WorkflowJsonService getInstance()
-
jsonExportWorkflow
public String jsonExportWorkflow(int idWorkflow) throws com.fasterxml.jackson.core.JsonProcessingException
Export the workflow as a Json Object.- Returns:
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
jsonImportWorkflow
@Transactional public void jsonImportWorkflow(String json, Locale locale) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
importWorkflow
public int importWorkflow(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflow, Locale locale)
-
-