hudson.model
Class DisplayNameListener
java.lang.Object
hudson.model.listeners.ItemListener
hudson.model.DisplayNameListener
- All Implemented Interfaces:
- ExtensionPoint
@Extension
public class DisplayNameListener
- extends ItemListener
- Author:
- kingfai
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisplayNameListener
public DisplayNameListener()
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.