Class RightsManagerPlugin
- java.lang.Object
-
- com.xpn.xwiki.plugin.XWikiDefaultPlugin
-
- com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin
-
- All Implemented Interfaces:
XWikiPluginInterface
public class RightsManagerPlugin extends XWikiDefaultPlugin
Entry point of the Rights Manager plugin.- Since:
- 1.1.2, 1.2M2
- Version:
- $Id: c567dfb0d970444ec0d9120e9c55576de3b5ec56 $
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGERThe logging tool.static StringPLUGIN_NAMEIdentifier of Wiki Manager plugin.
-
Constructor Summary
Constructors Constructor Description RightsManagerPlugin(String name, String className, XWikiContext context)Construct the entry point of the Rights Manager plugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApigetPluginApi(XWikiPluginInterface plugin, XWikiContext context)Get a public scriptable API that can be used to call methods of the (privileged) plugin.voidinit(XWikiContext context)Global initialization, called when the platform is started and the plugin list is initialized.-
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, getName, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
-
-
-
-
Field Detail
-
PLUGIN_NAME
public static final String PLUGIN_NAME
Identifier of Wiki Manager plugin.- See Also:
- Constant Field Values
-
LOGGER
protected static final org.slf4j.Logger LOGGER
The logging tool.
-
-
Constructor Detail
-
RightsManagerPlugin
public RightsManagerPlugin(String name, String className, XWikiContext context)
Construct the entry point of the Rights Manager plugin.- Parameters:
name- the identifier of the plugin.className- the class name of the entry point of the plugin.context- the XWiki context.
-
-
Method Detail
-
init
public void init(XWikiContext context)
Description copied from interface:XWikiPluginInterfaceGlobal initialization, called when the platform is started and the plugin list is initialized.- Specified by:
initin interfaceXWikiPluginInterface- Overrides:
initin classXWikiDefaultPlugin- Parameters:
context- the current context, should not be stored since it will become mostly unreliable once the initial request is terminated
-
getPluginApi
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
Description copied from interface:XWikiPluginInterfaceGet a public scriptable API that can be used to call methods of the (privileged) plugin.- Specified by:
getPluginApiin interfaceXWikiPluginInterface- Overrides:
getPluginApiin classXWikiDefaultPlugin- Parameters:
plugin- the plugin instance to wrapcontext- the current request context- Returns:
- an instance of the corresponding API, or
nullif the plugin doesn't want to expose a public API
-
-