public class RightsManagerPlugin extends XWikiDefaultPlugin
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER
The logging tool.
|
static String |
PLUGIN_NAME
Identifier of Wiki Manager plugin.
|
Constructor and Description |
---|
RightsManagerPlugin(String name,
String className,
XWikiContext context)
Construct the entry point of the Rights Manager plugin.
|
Modifier and Type | Method and Description |
---|---|
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
Get a public scriptable API that can be used to call methods of the (privileged) plugin.
|
void |
init(XWikiContext context)
Global initialization, called when the platform is started and the plugin list is initialized.
|
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, getName, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
public static final String PLUGIN_NAME
protected static final org.slf4j.Logger LOGGER
public RightsManagerPlugin(String name, String className, XWikiContext context)
name
- the identifier of the plugin.className
- the class name of the entry point of the plugin.context
- the XWiki context.public void init(XWikiContext context)
XWikiPluginInterface
init
in interface XWikiPluginInterface
init
in class XWikiDefaultPlugin
context
- the current context, should not be stored since it will become mostly unreliable once the initial
request is terminatedpublic Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
XWikiPluginInterface
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
plugin
- the plugin instance to wrapcontext
- the current request contextnull
if the plugin doesn't want to expose a public APICopyright © 2004–2022 XWiki. All rights reserved.