@Extension public class DisplayNameListener extends ItemListener
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DisplayNameListener() |
Modifier and Type | Method and 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.
|
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCreated, onDeleted, onLoaded, onLocationChanged, onUpdated, register
public void onCopied(Item src, Item item)
onCopied
in class ItemListener
src
- The source item that the new one was copied from. Never null.item
- The newly created item. Never null.public void onRenamed(Item item, String oldName, String newName)
onRenamed
in class ItemListener
item
- The item that has been renamed. The new project name is already
in item.getName()oldName
- the old namenewName
- the new nameCopyright © 2004–2022. All rights reserved.