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
public class ExtensionUpgradingEvent extends AbstractExtensionEvent implements BeginEvent
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:
ExtensionUpgradedEvent
,ExtensionUpgradeFailedEvent
-
-
Constructor Summary
Constructors Constructor Description ExtensionUpgradingEvent()
Matches 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 Detail
-
ExtensionUpgradingEvent
public ExtensionUpgradingEvent()
Matches all extensions.
-
ExtensionUpgradingEvent
public ExtensionUpgradingEvent(ExtensionId extensionId, String namespace)
Matches only the specified extension id or/and version.- Parameters:
extensionId
- the extension identifiernamespace
- the namespace on which the event happened
-
ExtensionUpgradingEvent
public ExtensionUpgradingEvent(ExtensionId extensionId)
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier
-
ExtensionUpgradingEvent
public ExtensionUpgradingEvent(String extensionId)
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier
-
-