@Role public interface ExtensionHandler
Modifier and Type | Method and Description |
---|---|
void |
checkInstall(Extension extension,
String namespace,
org.xwiki.job.Request request)
Check if installing the passed extension is allowed.
|
void |
checkUninstall(InstalledExtension extension,
String namespace,
org.xwiki.job.Request request)
Check if uninstalling the passed extension is allowed.
|
void |
initialize(LocalExtension localExtension,
String namespace)
Initialize the provided local extension (during application startup, re-initialization...).
|
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.
starting with 5.ORC1 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.
starting with 5.0RC1 use
upgrade(Collection, LocalExtension, String, Request) |
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)
previousLocalExtension
- 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 install the extensionvoid checkInstall(Extension extension, String namespace, org.xwiki.job.Request request) throws InstallException
It is generally used to do some non generic checking of whether or not it is possible to install the passed extension (not the right environment, not enough rights, etc.).
extension
- the extension to installnamespace
- the namespace from where to installrequest
- extra parametersInstallException
- installing the extension will failvoid checkUninstall(InstalledExtension extension, String namespace, org.xwiki.job.Request request) throws UninstallException
It is generally used to do some non generic checking of whether or not it is possible to uninstall the passed extension (not the right environment, not enough rights, etc.).
extension
- the extension to uninstallnamespace
- the namespace from where to uninstallrequest
- extra parametersUninstallException
- uninstalling the extension will failCopyright © 2004–2021 XWiki. All rights reserved.