@Role public interface ExtensionHandlerManager
Modifier and Type | Method and Description |
---|---|
void |
initialize(LocalExtension localExtension,
String namespace)
Initialize the provided local extension (during application startup, reinitialization...).
|
void |
install(LocalExtension localExtension,
String namespace,
org.xwiki.job.Request request)
Install the provided local extension.
|
void |
uninstall(InstalledExtension localExtension,
String namespace,
org.xwiki.job.Request request)
Uninstall the provided local extension.
|
void |
uninstall(LocalExtension localExtension,
String namespace,
org.xwiki.job.Request request)
Deprecated.
since 5.0RC1 use
uninstall(InstalledExtension, String, Request) instead |
void |
upgrade(Collection<InstalledExtension> previousLocalExtensions,
LocalExtension newLocalExtension,
String namespace,
org.xwiki.job.Request request)
Upgrade the provided local extension.
|
void |
upgrade(LocalExtension previousLocalExtension,
LocalExtension newLocalExtension,
String namespace,
org.xwiki.job.Request request)
Deprecated.
since 5.0RC1 use
upgrade(Collection, LocalExtension, String, Request) instead |
void install(LocalExtension localExtension, String namespace, org.xwiki.job.Request request) throws InstallException
localExtension
- the extension to installnamespace
- the namespace where to install the extensionrequest
- extra parametersInstallException
- error when trying to install the extension@Deprecated void uninstall(LocalExtension localExtension, String namespace, org.xwiki.job.Request request) throws UninstallException
uninstall(InstalledExtension, String, Request)
insteadlocalExtension
- the extension to uninstallnamespace
- the namespace from where to uninstall the extensionrequest
- extra parametersUninstallException
- error when trying to uninstall the extensionvoid uninstall(InstalledExtension localExtension, String namespace, org.xwiki.job.Request request) throws UninstallException
localExtension
- the extension to uninstallnamespace
- the namespace from where to uninstall the extensionrequest
- extra parametersUninstallException
- error when trying to uninstall the extension@Deprecated void upgrade(LocalExtension previousLocalExtension, LocalExtension newLocalExtension, String namespace, org.xwiki.job.Request request) throws InstallException
upgrade(Collection, LocalExtension, String, Request)
insteadpreviousLocalExtension
- the previous installed version of the extensionnewLocalExtension
- the extension to installnamespace
- the namespace from where to uninstall the extensionrequest
- extra parametersInstallException
- error when trying to upgrade the extensionvoid upgrade(Collection<InstalledExtension> previousLocalExtensions, LocalExtension newLocalExtension, String namespace, org.xwiki.job.Request request) throws InstallException
previousLocalExtensions
- the previous installed versions of the extensionnewLocalExtension
- the extension to installnamespace
- the namespace from where to uninstall the extensionrequest
- extra parametersInstallException
- error when trying to upgrade the extensionvoid initialize(LocalExtension localExtension, String namespace) throws ExtensionException
localExtension
- the extension to installnamespace
- the namespace where to install the extensionExtensionException
- error when trying to initialize the extensionCopyright © 2004–2021 XWiki. All rights reserved.