Class GenericEventItemListener
java.lang.Object
hudson.model.listeners.ItemListener
io.jenkins.plugins.generic.event.listener.GenericEventItemListener
- All Implemented Interfaces:
ExtensionPoint
This listener collects events about all items.
- Author:
- johnniang
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCanonicalEventUrl(String fullName) Normalizes url for canonical representationgetCanonicalEventUrlNewLocation(Item item, String newFullName) voidvoidvoidonLocationChanged(Item item, String oldFullName, String newFullName) voidvoidsetEventSender(EventSender eventSender) Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCopied, onLoaded, onRenamed, register
-
Constructor Details
-
GenericEventItemListener
public GenericEventItemListener()
-
-
Method Details
-
setEventSender
-
getCanonicalEventUrl
Normalizes url for canonical representationFor example, if the url was "view/myView/job/folder/job/taskName/", then result will be "job/folder/job/taskName/"
- Parameters:
fullName- Project name
-
getCanonicalEventUrlNewLocation
-
onCreated
- Overrides:
onCreatedin classItemListener
-
onDeleted
- Overrides:
onDeletedin classItemListener
-
onUpdated
- Overrides:
onUpdatedin classItemListener
-
onLocationChanged
- Overrides:
onLocationChangedin classItemListener
-