Class JsonGraphRoute
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.routing.core.impl.jsongraph.JsonGraphRoute
-
public class JsonGraphRoute extends UnrestrictedSessionRunner
- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description protected String
docId
protected Map<String,Object>
graphElements
protected GraphRoute
graphRoute
protected String
json
protected Locale
locale
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description JsonGraphRoute(CoreSession session, String docId, Locale locale)
JsonGraphRoute(CoreSession session, GraphRoute graphRoute, Locale locale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getGraphElements()
static Map<String,Object>
getGraphElementsAsMap(GraphRoute route, Locale locale)
static String
getI18nLabel(String label, Locale locale)
String
getJSON()
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.String
toString()
-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Field Detail
-
graphRoute
protected GraphRoute graphRoute
-
graphElements
protected Map<String,Object> graphElements
-
-
Constructor Detail
-
JsonGraphRoute
public JsonGraphRoute(CoreSession session, GraphRoute graphRoute, Locale locale)
-
JsonGraphRoute
public JsonGraphRoute(CoreSession session, String docId, Locale locale)
-
-
Method Detail
-
getGraphElementsAsMap
public static Map<String,Object> getGraphElementsAsMap(GraphRoute route, Locale locale)
-
getI18nLabel
public static String getI18nLabel(String label, Locale locale)
-
getGraphElements
public Map<String,Object> getGraphElements()
- Since:
- 7.2
-
run
public void run()
Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.session
available will be the one passed to#UnrestrictedSessionRunner(CoreSession)
.- Specified by:
run
in classUnrestrictedSessionRunner
-
-