hudson.model
Class DisplayNameListener

java.lang.Object
  extended by hudson.model.listeners.ItemListener
      extended by hudson.model.DisplayNameListener
All Implemented Interfaces:
ExtensionPoint

@Extension
public class DisplayNameListener
extends ItemListener

Author:
kingfai

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
DisplayNameListener()
           
 
Method Summary
 void onCopied(Item src, Item item)
          Called after a new job is created by copying from an existing job.
 void onRenamed(Item item, String oldName, String newName)
          Called after a job is renamed.
 
Methods inherited from class hudson.model.listeners.ItemListener
all, fireOnCopied, fireOnCreated, fireOnUpdated, onBeforeShutdown, onCreated, onDeleted, onLoaded, onUpdated, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayNameListener

public DisplayNameListener()
Method Detail

onCopied

public void onCopied(Item src,
                     Item item)
Description copied from class: ItemListener
Called after a new job is created by copying from an existing job. For backward compatibility, the default implementation of this method calls ItemListener.onCreated(Item). If you choose to handle this method, think about whether you want to call super.onCopied or not.

Overrides:
onCopied in class ItemListener
Parameters:
src - The source item that the new one was copied from. Never null.
item - The newly created item. Never null.

onRenamed

public void onRenamed(Item item,
                      String oldName,
                      String newName)
Description copied from class: ItemListener
Called after a job is renamed.

Overrides:
onRenamed in class ItemListener
Parameters:
item - The job being renamed.
oldName - The old name of the job.
newName - The new name of the job. Same as Item.getName().


Copyright © 2004-2013. All Rights Reserved.