org.jenkinsci.plugins.mailwatcher
Class WatcherItemListener

java.lang.Object
  extended by hudson.model.listeners.ItemListener
      extended by org.jenkinsci.plugins.mailwatcher.WatcherItemListener
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class WatcherItemListener
extends hudson.model.listeners.ItemListener

Notify whenever Job configuration changes. Sends email do the list of recipients on following events: onRenamed, onUpdated and onDeleted.

Author:
ogondza

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
WatcherItemListener()
           
WatcherItemListener(MailWatcherMailer mailer, String jenkinsRootUrl)
           
 
Method Summary
 void onDeleted(hudson.model.Item item)
           
 void onRenamed(hudson.model.Item item, String oldName, String newName)
           
 void onUpdated(hudson.model.Item item)
           
 
Methods inherited from class hudson.model.listeners.ItemListener
all, fireOnCopied, fireOnCreated, fireOnUpdated, onBeforeShutdown, onCopied, onCreated, onLoaded, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatcherItemListener

public WatcherItemListener()

WatcherItemListener

public WatcherItemListener(MailWatcherMailer mailer,
                           String jenkinsRootUrl)
Method Detail

onRenamed

public void onRenamed(hudson.model.Item item,
                      String oldName,
                      String newName)
Overrides:
onRenamed in class hudson.model.listeners.ItemListener

onUpdated

public void onUpdated(hudson.model.Item item)
Overrides:
onUpdated in class hudson.model.listeners.ItemListener

onDeleted

public void onDeleted(hudson.model.Item item)
Overrides:
onDeleted in class hudson.model.listeners.ItemListener


Copyright © 2004-2012. All Rights Reserved.