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 previous InstalledExtension instances
Since:
9.2RC1
Version:
$Id: 4a1dfd82bdb9c4447844fb154cc654343aaf934a $
See Also:
  • Constructor Details

    • 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 identifier
      namespace - 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