Package hudson.model
Class ListView.Listener
java.lang.Object
hudson.model.listeners.ItemListener
hudson.model.ListView.Listener
- All Implemented Interfaces:
- ExtensionPoint
- Enclosing class:
- ListView
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public static final class ListView.Listener
extends ItemListener
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class hudson.model.listeners.ItemListenerall, checkBeforeCopy, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCopied, onCreated, onLoaded, onRenamed, onUpdated, register
- 
Constructor Details- 
Listenerpublic Listener()
 
- 
- 
Method Details- 
onLocationChangedDescription copied from class:ItemListenerCalled after an item’s fully-qualified location has changed. This might be because:- This item was renamed.
- Some ancestor folder was renamed.
- This item was moved between folders (or from a folder to Jenkins root or vice-versa).
- Some ancestor folder was moved.
 ItemListener.onRenamed(hudson.model.Item, java.lang.String, java.lang.String)will already have been called on this item or an ancestor. And where applicable,ItemListener.onLocationChanged(hudson.model.Item, java.lang.String, java.lang.String)will already have been called on its ancestors.This method should be used (instead of ItemListener.onRenamed(hudson.model.Item, java.lang.String, java.lang.String)) by any code which seeks to keep (absolute) references to items up to date: if a persisted reference matchesoldFullName, replace it withnewFullName.- Overrides:
- onLocationChangedin class- ItemListener
- Parameters:
- item- an item whose absolute position is now different
- oldFullName- the former- Item.getFullName()
- newFullName- the current- Item.getFullName()
- See Also:
 
- 
onDeletedDescription copied from class:ItemListenerCalled right before a job is going to be deleted. At this point the data files of the job is already gone.- Overrides:
- onDeletedin class- ItemListener
 
 
-