public class JsonGraphRoute extends UnrestrictedSessionRunner
isUnrestricted
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, runUnrestricted, setOriginatingUsername
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 String getJSON() throws ClientException
ClientException
public void run() throws ClientException
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
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.