Package 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DisplayNameListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCopied(Item src, Item item)
Called after the user has clicked OK in the New Job page when Copy existing job has been selected.void
onRenamed(Item item, String oldName, String newName)
Called after the user has changed the project name of a job and then clicked on submit.-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCreated, onDeleted, onLoaded, onLocationChanged, onUpdated, register
-
-
-
-
Method Detail
-
onCopied
public void onCopied(Item src, Item item)
Called after the user has clicked OK in the New Job page when Copy existing job has been selected. The fields in item will be displayed in when the config page is loaded displayed.- Overrides:
onCopied
in classItemListener
- 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)
Called after the user has changed the project name of a job and then clicked on submit.- Overrides:
onRenamed
in classItemListener
- Parameters:
item
- The item that has been renamed. The new project name is already in item.getName()oldName
- the old namenewName
- the new name
-
-