Class GraphVariablesUtil
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.impl.GraphVariablesUtil
-
public class GraphVariablesUtil extends Object
Helper to set/get variables on a document that are stored in a facet.- Since:
- 5.6
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static SchemaManager
getSchemaManager()
static Map<String,Serializable>
getVariables(DocumentModel doc, String facetProp)
static Map<String,Serializable>
getVariables(DocumentModel doc, String facetProp, boolean mapToJSON)
static void
setJSONVariables(DocumentModel doc, String facetProp, Map<String,String> map)
Sets the variables of the workflow based on their JSON representation (especially for scalar lists).static void
setJSONVariables(DocumentModel doc, String facetProp, Map<String,String> map, boolean save)
static void
setVariables(DocumentModel doc, String facetProp, Map<String,Serializable> map)
static void
setVariables(DocumentModel doc, String facetProp, Map<String,Serializable> map, boolean save)
-
-
-
Method Detail
-
getSchemaManager
protected static SchemaManager getSchemaManager()
-
getVariables
public static Map<String,Serializable> getVariables(DocumentModel doc, String facetProp, boolean mapToJSON)
- Since:
- 7.2
-
getVariables
public static Map<String,Serializable> getVariables(DocumentModel doc, String facetProp)
-
setVariables
public static void setVariables(DocumentModel doc, String facetProp, Map<String,Serializable> map)
-
setVariables
public static void setVariables(DocumentModel doc, String facetProp, Map<String,Serializable> map, boolean save)
- Since:
- 7.2
-
setJSONVariables
public static void setJSONVariables(DocumentModel doc, String facetProp, Map<String,String> map)
Sets the variables of the workflow based on their JSON representation (especially for scalar lists).- Since:
- 5.9.3, 5.8.0-HF10
-
setJSONVariables
public static void setJSONVariables(DocumentModel doc, String facetProp, Map<String,String> map, boolean save)
- Since:
- 7.2
-
-