@groovy.transform.CompileStatic class ResourceFacadeImpl extends java.lang.Object implements ResourceFacade
Modifiers | Name | Description |
---|---|---|
static class |
ResourceFacadeImpl.LocalResolver |
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, Repository> |
contentRepositories |
|
protected java.lang.ThreadLocal<java.util.Map<java.lang.String, Session>> |
contentSessions |
|
protected ExecutionContextFactoryImpl |
ecfi |
|
protected static org.slf4j.Logger |
logger |
|
protected Cache<java.lang.String, ResourceReference> |
resourceReferenceByLocation |
|
protected java.util.Map<java.lang.String, java.lang.Class> |
resourceReferenceClasses |
|
protected javax.script.ScriptEngineManager |
scriptEngineManager |
|
protected java.util.Map<java.lang.String, java.lang.Class> |
scriptGroovyExpressionCache |
|
protected java.util.Map<java.lang.String, ScriptRunner> |
scriptRunners |
|
protected java.util.ArrayList<java.lang.String> |
templateRendererExtensions |
|
protected java.util.ArrayList<java.lang.Integer> |
templateRendererExtensionsDots |
|
protected java.util.Map<java.lang.String, TemplateRenderer> |
templateRenderers |
|
protected Cache<java.lang.String, java.lang.String> |
textLocationCache |
|
protected java.lang.ThreadLocal<java.util.Map<java.lang.String, groovy.lang.Script>> |
threadScriptByExpression |
|
protected ToolFactory<org.xml.sax.ContentHandler> |
xslFoHandlerFactory |
Type | Name and description |
---|---|
static java.util.Set<java.lang.String> |
binaryExtensions |
FtlTemplateRenderer |
ftlTemplateRenderer |
XmlActionsScriptRunner |
xmlActionsScriptRunner |
Constructor and description |
---|
ResourceFacadeImpl
(ExecutionContextFactoryImpl ecfi) |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
condition(java.lang.String expression, java.lang.String debugLocation) |
|
boolean |
condition(java.lang.String expression, java.lang.String debugLocation, java.util.Map additionalContext) |
|
protected boolean |
conditionInternal(java.lang.String expression, java.lang.String debugLocation, ExecutionContextImpl ec) |
|
void |
destroyAllInThread() |
|
java.lang.String |
expand(java.lang.String inputString, java.lang.String debugLocation) |
|
java.lang.String |
expand(java.lang.String inputString, java.lang.String debugLocation, java.util.Map additionalContext) |
|
java.lang.String |
expand(java.lang.String inputString, java.lang.String debugLocation, java.util.Map additionalContext, boolean localize) |
|
java.lang.String |
expandNoL10n(java.lang.String inputString, java.lang.String debugLocation) |
|
java.lang.Object |
expression(java.lang.String expression, java.lang.String debugLocation) |
|
java.lang.Object |
expression(java.lang.String expr, java.lang.String debugLocation, java.util.Map additionalContext) |
|
protected java.lang.Object |
expressionInternal(java.lang.String expression, java.lang.String debugLocation, ExecutionContextImpl ec) |
|
javax.jcr.Repository |
getContentRepository(java.lang.String name) |
|
javax.jcr.Session |
getContentRepositorySession(java.lang.String name) Get the active JCR Session for the context/thread, making sure it is live, and make one if needed. |
|
java.lang.String |
getContentType(java.lang.String filename) |
|
ExecutionContextFactoryImpl |
getEcfi() |
|
java.lang.Class |
getGroovyClass(java.lang.String expression) |
|
groovy.lang.Script |
getGroovyScript(java.lang.String expression, ExecutionContextImpl eci) |
|
javax.activation.DataSource |
getLocationDataSource(java.lang.String location) |
|
ResourceReference |
getLocationReference(java.lang.String location) |
|
static java.lang.String |
getLocationScheme(java.lang.String location) |
|
java.io.InputStream |
getLocationStream(java.lang.String location) |
|
java.lang.String |
getLocationText(java.lang.String location, boolean cache) |
|
TemplateRenderer |
getTemplateRendererByLocation(java.lang.String location) |
|
java.util.TreeSet<java.lang.String> |
getTemplateRendererExtensionSet() |
|
java.util.Map<java.lang.String, TemplateRenderer> |
getTemplateRenderers() |
|
ResourceReference |
getUriReference(java.net.URI uri) |
|
java.lang.Object |
getValueFromContext(java.lang.String from, java.lang.String value, java.lang.String defaultValue, java.lang.String type) |
|
java.lang.Object |
script(java.lang.String location, java.lang.String method) |
|
java.lang.Object |
script(java.lang.String location, java.lang.String method, java.util.Map additionalContext) |
|
java.lang.Object |
setInContext(java.lang.String field, java.lang.String from, java.lang.String value, java.lang.String defaultValue, java.lang.String type, java.lang.String setIfEmpty) |
|
void |
template(java.lang.String location, java.io.Writer writer) |
|
void |
template(java.lang.String location, java.io.Writer writer, java.lang.String defaultExtension) |
|
java.lang.String |
template(java.lang.String location, java.lang.String defaultExtension) |
|
java.lang.Integer |
xslFoTransform(javax.xml.transform.stream.StreamSource xslFoSrc, javax.xml.transform.stream.StreamSource xsltSrc, java.io.OutputStream out, java.lang.String contentType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the active JCR Session for the context/thread, making sure it is live, and make one if needed.
Groovy Documentation