public ExtensibilityModel openExtensibilityModel() { RequestContext context = getRequestContext(); ExtensibilityModel extModel = context.openExtensibilityModel(); return extModel; }
public ExtensibilityModel getCurrentExtensibilityModel() { RequestContext context = getRequestContext(); ExtensibilityModel extModel = context.getCurrentExtensibilityModel(); return extModel; }
public ExtensibilityModel getCurrentExtensibilityModel() { RequestContext context = getRequestContext(); ExtensibilityModel extModel = context.getCurrentExtensibilityModel(); return extModel; }
public ExtensibilityModel openExtensibilityModel() { RequestContext context = getRequestContext(); ExtensibilityModel extModel = context.openExtensibilityModel(); return extModel; }
public void closeExtensibilityModel(ExtensibilityModel model, Writer out) { RequestContext context = getRequestContext(); if (context != null) { context.closeExtensibilityModel(model, out); } else { model.flushModel(out); } }
public void updateExtendingModuleDependencies(String pathBeingProcessed, Map<String, Object> model) { // Get the context bound to the current thread of execution, we can then check this for // the current module evaluation results. This allows us to only perform a single evalution // per extension module per request... RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } context.updateExtendingModuleDependencies(pathBeingProcessed, model); }
public void updateExtendingModuleDependencies(String pathBeingProcessed, Map<String, Object> model) { // Get the context bound to the current thread of execution, we can then check this for // the current module evaluation results. This allows us to only perform a single evalution // per extension module per request... RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } context.updateExtendingModuleDependencies(pathBeingProcessed, model); }
public void closeExtensibilityModel(ExtensibilityModel model, Writer out) { RequestContext context = getRequestContext(); if (context != null) { context.closeExtensibilityModel(model, out); } else { model.flushModel(out); } }
public TemplateConfigModel getExtendedTemplateConfigModel(String xmlConfig) { TemplateConfigModel templateConfigModel = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { templateConfigModel = context.getExtendedTemplateConfigModel(xmlConfig); } return templateConfigModel; }
public ScriptConfigModel getExtendedScriptConfigModel(String xmlConfig) { ScriptConfigModel scriptConfigModel = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { scriptConfigModel = context.getExtendedScriptConfigModel(xmlConfig); } return scriptConfigModel; }
public ScriptConfigModel getExtendedScriptConfigModel(String xmlConfig) { ScriptConfigModel scriptConfigModel = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { scriptConfigModel = context.getExtendedScriptConfigModel(xmlConfig); } return scriptConfigModel; }
public TemplateConfigModel getExtendedTemplateConfigModel(String xmlConfig) { TemplateConfigModel templateConfigModel = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { templateConfigModel = context.getExtendedTemplateConfigModel(xmlConfig); } return templateConfigModel; }
public List<String> getExtendingModuleFiles(String pathBeingProcessed) { // Get the context bound to the current thread of execution, we can then check this for // the current module evaluation results. This allows us to only perform a single evalution // per extension module per request...# List<String> files = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { files = context.getExtendingModuleFiles(pathBeingProcessed); } else { files = new ArrayList<String>(); } return files; }
@Override public Map<String, Object> getScriptParameters() { // NOTE: returns unmodifable map from super Map<String, Object> params = new HashMap<String, Object>(8, 1.0f); params.putAll(super.getScriptParameters()); // render context RequestContext context = getRequestContext(); ModelObject object = getModelObject(); // if we have a render context, populate root script properties if (context != null) { processorModelHelper.populateScriptModel(context, params, object); } return params; }
@Override public Map<String, Object> getScriptParameters() { // NOTE: returns unmodifable map from super Map<String, Object> params = new HashMap<String, Object>(8, 1.0f); params.putAll(super.getScriptParameters()); // render context RequestContext context = getRequestContext(); ModelObject object = getModelObject(); // if we have a render context, populate root script properties if (context != null) { processorModelHelper.populateScriptModel(context, params, object); } return params; }
/** * <p>Sets the path of the current file being processed. This request is delegated to the associated * {@link RequestContext}.</p> */ public void setFileBeingProcessed(String file) { RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { context.setFileBeingProcessed(file); } }
/** * <p>Sets the path of the current file being processed. This request is delegated to the associated * {@link RequestContext}.</p> */ public void setFileBeingProcessed(String file) { RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { context.setFileBeingProcessed(file); } }
/** * <p>Retrieves the path of the current file being processed. This request is delegated to the associated * {@link RequestContext}.</p> */ public String getFileBeingProcessed() { String file = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { file = context.getFileBeingProcessed(); } return file; }
/** * <p>Retrieves the path of the current file being processed. This request is delegated to the associated * {@link RequestContext}.</p> */ public String getFileBeingProcessed() { String file = null; RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { file = context.getFileBeingProcessed(); } return file; }
/** * <p>Adds a new extended bundle to the cache of the current {@link RequestContext}. An extended bundle is a WebScript * {@link ResourceBundle} that has had {@link ResourceBundle} instances merged into it from extension modules that have * been applied. These can only be cached for the lifetime of the request as different modules may be applied to the same * WebScript for different requests.</p> * * @param webScriptId The id of the WebScript to cache the extended bundle against. * @param extensionBundle The extended bundle to cache. */ public void addExtensionBundleToCache(String webScriptId, WebScriptPropertyResourceBundle extensionBundle) { RequestContext context = getRequestContext(); if (context == null) { context = ThreadLocalRequestContext.getRequestContext(); } if (context != null) { context.addExtensionBundleToCache(webScriptId, extensionBundle); } }