Package org.xwiki.extension.event
Class ExtensionUpgradedEvent
- java.lang.Object
-
- org.xwiki.extension.event.AbstractExtensionEvent
-
- org.xwiki.extension.event.ExtensionUpgradedEvent
-
- All Implemented Interfaces:
ExtensionEvent
,EndEvent
,Event
public class ExtensionUpgradedEvent extends AbstractExtensionEvent implements EndEvent
An event triggered when a extension has been upgraded.The event also send the following parameters:
- source: the related new
InstalledExtension
instance - data: a
java.util.Collection<org.xwiki.extension.InstalledExtension>
containing the previousInstalledExtension
instances
Implements
EndEvent
since 9.2RC1.- Since:
- 4.0M1
- Version:
- $Id: ad197f01e28191a8fa83095eb93b8c2cd783a0bf $
- See Also:
ExtensionUpgradeFailedEvent
,ExtensionUpgradingEvent
-
-
Constructor Summary
Constructors Constructor Description ExtensionUpgradedEvent()
Matches all extensions.ExtensionUpgradedEvent(String extensionId)
Matches only the specified extension id or/and version on every namespaces.ExtensionUpgradedEvent(ExtensionId extensionId)
Matches only the specified extension id or/and version on every namespaces.ExtensionUpgradedEvent(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
-
ExtensionUpgradedEvent
public ExtensionUpgradedEvent()
Matches all extensions.
-
ExtensionUpgradedEvent
public ExtensionUpgradedEvent(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
-
ExtensionUpgradedEvent
public ExtensionUpgradedEvent(ExtensionId extensionId)
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier- Since:
- 9.0RC1, 8.4.2, 7.4.6
-
ExtensionUpgradedEvent
public ExtensionUpgradedEvent(String extensionId)
Matches only the specified extension id or/and version on every namespaces.- Parameters:
extensionId
- the extension identifier- Since:
- 9.0RC1, 8.4.2, 7.4.6
-
-