public abstract class AbstractResourceSkinExtensionPlugin
extends com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPlugin
| Constructor and Description |
|---|
AbstractResourceSkinExtensionPlugin(String name,
String className,
com.xpn.xwiki.XWikiContext context)
XWiki plugin constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
generateLink(String url,
String resourceName,
com.xpn.xwiki.XWikiContext context)
Takes a URL string and outputs a link which will cause the browser to load the url.
|
protected abstract String |
getAction()
Get the action which the url should specify for calling this resource.
|
Set<String> |
getAlwaysUsedExtensions(com.xpn.xwiki.XWikiContext context) |
String |
getLink(String resourceName,
com.xpn.xwiki.XWikiContext context) |
boolean |
hasPageExtensions(com.xpn.xwiki.XWikiContext context) |
endParsing, getCacheResources, getImportString, getParameter, getParametersForResource, getParametersMap, getPluginApi, getPulledResources, initializeRequestListIfNeeded, parametersAsQueryString, restoreCacheResources, sanitize, use, usebeginParsing, beginRendering, commonTagsHandler, downloadAttachment, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, getName, init, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInitpublic AbstractResourceSkinExtensionPlugin(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)protected abstract String getAction()
protected abstract String generateLink(String url, String resourceName, com.xpn.xwiki.XWikiContext context)
url - String representation of the url to load (eg: /res/url.js)resourceName - name of the pulled resourcecontext - the current request context<script type="text/javascript" src="/res/url.js"/>)public String getLink(String resourceName, com.xpn.xwiki.XWikiContext context)
getLink in class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPluginpublic Set<String> getAlwaysUsedExtensions(com.xpn.xwiki.XWikiContext context)
There is no support for always used resource-based extensions yet.
getAlwaysUsedExtensions in class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPluginAbstractSkinExtensionPlugin.getAlwaysUsedExtensions(XWikiContext)public boolean hasPageExtensions(com.xpn.xwiki.XWikiContext context)
Not supported for resource extensions.
hasPageExtensions in class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPluginAbstractSkinExtensionPlugin.hasPageExtensions(com.xpn.xwiki.XWikiContext)Copyright © 2011–2017 University of Toronto, Computational Biology Lab. All rights reserved.