Package hudson.model
Class DisplayNameListener
java.lang.Object
hudson.model.listeners.ItemListener
hudson.model.DisplayNameListener
- All Implemented Interfaces:
ExtensionPoint
- Author:
- kingfai
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after the user has clicked OK in the New Job page when Copy existing job has been selected.void
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, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCreated, onDeleted, onLoaded, onLocationChanged, onUpdated, register
-
Constructor Details
-
DisplayNameListener
public DisplayNameListener()
-
-
Method Details
-
onCopied
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
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
-