public class JsonGraphRoute extends UnrestrictedSessionRunner
Modifier and Type | Field and Description |
---|---|
protected String |
docId |
protected Map<String,Object> |
graphElements |
protected GraphRoute |
graphRoute |
protected String |
json |
protected Locale |
locale |
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
Constructor and Description |
---|
JsonGraphRoute(CoreSession session,
GraphRoute graphRoute,
Locale locale) |
JsonGraphRoute(CoreSession session,
String docId,
Locale locale) |
Modifier and Type | Method and 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 by
UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session. |
String |
toString() |
getOriginatingUsername, isUnrestricted, runUnrestricted, setOriginatingUsername
protected GraphRoute graphRoute
protected Map<String,Object> graphElements
public JsonGraphRoute(CoreSession session, GraphRoute graphRoute, Locale locale)
public JsonGraphRoute(CoreSession session, String docId, Locale locale)
public static Map<String,Object> getGraphElementsAsMap(GraphRoute route, Locale locale)
public static String getI18nLabel(String label, Locale locale)
public Map<String,Object> getGraphElements()
public void run()
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with UnrestrictedSessionRunner.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)
.
run
in class UnrestrictedSessionRunner
Copyright © 2015 Nuxeo SA. All rights reserved.