Package org.xwiki.extension.event
Class ExtensionUpgradingEvent
java.lang.Object
org.xwiki.extension.event.AbstractExtensionEvent
org.xwiki.extension.event.ExtensionUpgradingEvent
- All Implemented Interfaces:
ExtensionEvent
,BeginEvent
,Event
An event triggered when a extension is going to be upgraded.
The event also send the following parameters:
- source: the related new
LocalExtension
instance - data: a
java.util.Collection<org.xwiki.extension.InstalledExtension>
containing the previousInstalledExtension
instances
- Since:
- 9.2RC1
- Version:
- $Id: 4a1dfd82bdb9c4447844fb154cc654343aaf934a $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMatches all extensions.ExtensionUpgradingEvent
(String extensionId) Matches only the specified extension id or/and version on every namespaces.ExtensionUpgradingEvent
(ExtensionId extensionId) Matches only the specified extension id or/and version on every namespaces.ExtensionUpgradingEvent
(ExtensionId extensionId, String namespace) Matches only the specified extension id or/and version. -
Method Summary
Methods inherited from class org.xwiki.extension.event.AbstractExtensionEvent
getExtensionId, getNamespace, hasNamespace, matches
-
Constructor Details
-
ExtensionUpgradingEvent
public ExtensionUpgradingEvent()Matches all extensions. -
ExtensionUpgradingEvent
Matches only the specified extension id or/and version.- Parameters:
extensionId
- the extension identifiernamespace
- the namespace on which the event happened
-
ExtensionUpgradingEvent
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier
-
ExtensionUpgradingEvent
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier
-