public class JsSkinExtensionPlugin
extends com.xpn.xwiki.plugin.skinx.AbstractDocumentSkinExtensionPlugin
XWiki.JavaScriptExtension objects.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFER_DEFAULT_PARAM
The name of the preference (in the configuration file) specifying what is the default value of the defer, in case
nothing is specified in the parameters of this extension.
|
static String |
JSX_CLASS_NAME
The name of the XClass storing the code for this type of extensions.
|
static org.xwiki.model.reference.EntityReference |
JSX_CLASS_REFERENCE |
static String |
PLUGIN_NAME
The identifier for this plugin; used for accessing the plugin from velocity, and as the action returning the
extension content.
|
| Constructor and Description |
|---|
JsSkinExtensionPlugin(String name,
String className,
com.xpn.xwiki.XWikiContext context)
XWiki plugin constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
endParsing(String content,
com.xpn.xwiki.XWikiContext context) |
protected String |
getExtensionClassName() |
protected String |
getExtensionName() |
String |
getLink(String documentName,
com.xpn.xwiki.XWikiContext context) |
void |
virtualInit(com.xpn.xwiki.XWikiContext context) |
getAlwaysUsedExtensions, getAlwaysUsedExtensions, getEvents, getExtensionClass, hasPageExtensions, init, onEvent, use, usegetCacheResources, getImportString, getParameter, getParametersForResource, getParametersMap, getPluginApi, getPulledResources, initializeRequestListIfNeeded, parametersAsQueryString, restoreCacheResources, sanitizebeginParsing, beginRendering, commonTagsHandler, downloadAttachment, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, getName, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandlerpublic static final String JSX_CLASS_NAME
public static final org.xwiki.model.reference.EntityReference JSX_CLASS_REFERENCE
public static final String PLUGIN_NAME
public static final String DEFER_DEFAULT_PARAM
public JsSkinExtensionPlugin(String name, String className, com.xpn.xwiki.XWikiContext context)
name - The name of the plugin, which can be used for retrieving the plugin API from velocity. Unused.className - The canonical classname of the plugin. Unused.context - The current request context.XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)public void virtualInit(com.xpn.xwiki.XWikiContext context)
We must override this method since the plugin manager only calls it for classes that provide their own implementation, and not an inherited one.
virtualInit in interface com.xpn.xwiki.plugin.XWikiPluginInterfacevirtualInit in class com.xpn.xwiki.plugin.skinx.AbstractDocumentSkinExtensionPluginXWikiPluginInterface.virtualInit(com.xpn.xwiki.XWikiContext)public String getLink(String documentName, com.xpn.xwiki.XWikiContext context)
getLink in class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPluginprotected String getExtensionClassName()
getExtensionClassName in class com.xpn.xwiki.plugin.skinx.AbstractDocumentSkinExtensionPluginprotected String getExtensionName()
getExtensionName in class com.xpn.xwiki.plugin.skinx.AbstractDocumentSkinExtensionPluginpublic String endParsing(String content, com.xpn.xwiki.XWikiContext context)
We must override this method since the plugin manager only calls it for classes that provide their own implementation, and not an inherited one.
endParsing in interface com.xpn.xwiki.plugin.XWikiPluginInterfaceendParsing in class com.xpn.xwiki.plugin.skinx.AbstractDocumentSkinExtensionPluginAbstractSkinExtensionPlugin.endParsing(String, XWikiContext)Copyright © 2011–2017 University of Toronto, Computational Biology Lab. All rights reserved.