Class WatcherItemListener
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- org.jenkinsci.plugins.mailwatcher.WatcherItemListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class WatcherItemListener extends ItemListener
Notify whenever Job configuration changes. Sends email to the list of recipients on following events: onRenamed, onUpdated and onDeleted.- Author:
- ogondza
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WatcherItemListener()
WatcherItemListener(MailWatcherMailer mailer, String jenkinsRootUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onDeleted(Item item)
void
onRenamed(Item item, String oldName, String newName)
void
onUpdated(Item item)
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onCreated, onLoaded, onLocationChanged, register
-
-
-
-
Constructor Detail
-
WatcherItemListener
public WatcherItemListener()
-
WatcherItemListener
public WatcherItemListener(MailWatcherMailer mailer, String jenkinsRootUrl)
-
-
Method Detail
-
onRenamed
public void onRenamed(Item item, String oldName, String newName)
- Overrides:
onRenamed
in classItemListener
-
onUpdated
public void onUpdated(Item item)
- Overrides:
onUpdated
in classItemListener
-
onDeleted
public void onDeleted(Item item)
- Overrides:
onDeleted
in classItemListener
-
-