Class JobConfigStateChangeListener
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- io.jenkins.plugins.propelo.job_reporter.extensions.JobConfigStateChangeListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class JobConfigStateChangeListener extends ItemListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JobConfigStateChangeListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreated(Item item)
void
onDeleted(Item item)
void
onLocationChanged(Item item, String oldFullName, String newFullName)
void
onRenamed(Item item, String oldName, String newName)
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onLoaded, onUpdated, register
-
-
-
-
Method Detail
-
onCreated
public void onCreated(Item item)
- Overrides:
onCreated
in classItemListener
-
onLocationChanged
public void onLocationChanged(Item item, String oldFullName, String newFullName)
- Overrides:
onLocationChanged
in classItemListener
-
onRenamed
public void onRenamed(Item item, String oldName, String newName)
Also checks if we have history stored under the old name. If so, copies all history to the folder for new name, and deletes the old history folder.
- Overrides:
onRenamed
in classItemListener
-
onDeleted
public void onDeleted(Item item)
- Overrides:
onDeleted
in classItemListener
-
-