Class GenericEventItemListener

java.lang.Object
hudson.model.listeners.ItemListener
io.jenkins.plugins.generic.event.listener.GenericEventItemListener
All Implemented Interfaces:
ExtensionPoint

@Extension public class GenericEventItemListener extends ItemListener
This listener collects events about all items.
Author:
johnniang
  • Constructor Details

    • GenericEventItemListener

      public GenericEventItemListener()
  • Method Details

    • setEventSender

      public void setEventSender(EventSender eventSender)
    • getCanonicalEventUrl

      public String getCanonicalEventUrl(String fullName)
      Normalizes url for canonical representation

      For example, if the url was "view/myView/job/folder/job/taskName/", then result will be "job/folder/job/taskName/"

      Parameters:
      fullName - Project name
    • getCanonicalEventUrlNewLocation

      public String getCanonicalEventUrlNewLocation(Item item, String newFullName)
    • onCreated

      public void onCreated(Item item)
      Overrides:
      onCreated in class ItemListener
    • onDeleted

      public void onDeleted(Item item)
      Overrides:
      onDeleted in class ItemListener
    • onUpdated

      public void onUpdated(Item item)
      Overrides:
      onUpdated in class ItemListener
    • onLocationChanged

      public void onLocationChanged(Item item, String oldFullName, String newFullName)
      Overrides:
      onLocationChanged in class ItemListener