Package | Description |
---|---|
org.nuxeo.ecm.webengine.model | |
org.nuxeo.ecm.webengine.model.impl | |
org.nuxeo.ecm.webengine.model.io | |
org.nuxeo.ecm.webengine.scripting |
Modifier and Type | Method and Description |
---|---|
ScriptFile |
WebContext.getFile(String path)
Resolves the given path into a file.
|
ScriptFile |
Module.getFile(String path)
Gets a file using the configured directory stack.
|
ScriptFile |
Module.getSkinResource(String path)
Gets a skin resource input stream.
|
ScriptFile |
ResourceType.getView(Module module,
String name)
Gets a view for this type in the context of the given module.
|
ScriptFile |
View.script() |
ScriptFile |
Template.script() |
Modifier and Type | Method and Description |
---|---|
void |
WebContext.render(ScriptFile script,
Object args,
Writer writer)
Renders the given template using the rendering engine registered in that web engine.
|
Object |
WebContext.runScript(ScriptFile script,
Map<String,Object> args)
Runs the script using given arguments
|
View |
View.script(ScriptFile script) |
Constructor and Description |
---|
Template(Resource resource,
ScriptFile script) |
Template(WebContext ctx,
ScriptFile script) |
Modifier and Type | Method and Description |
---|---|
ScriptFile |
AbstractResourceType.findView(Module module,
String name) |
ScriptFile |
ModuleImpl.getFile(String path) |
ScriptFile |
AbstractWebContext.getFile(String path)
template and script resolver
|
ScriptFile |
ModuleImpl.getSkinResource(String path) |
ScriptFile |
AbstractResourceType.getView(Module module,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractWebContext.render(ScriptFile script,
Object ctx,
Writer writer) |
Object |
AbstractWebContext.runScript(ScriptFile script,
Map<String,Object> args) |
Modifier and Type | Method and Description |
---|---|
long |
ScriptFileWriter.getSize(ScriptFile arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4) |
void |
ScriptFileWriter.writeTo(ScriptFile t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
Modifier and Type | Method and Description |
---|---|
Object |
Scripting.runScript(ScriptFile script) |
Object |
Scripting.runScript(ScriptFile script,
Map<String,Object> args) |
Copyright © 2015 Nuxeo SA. All rights reserved.