Package hudson.scm

Class IntegrityItemListenerImpl

java.lang.Object
hudson.model.listeners.ItemListener
hudson.scm.IntegrityItemListenerImpl
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension public class IntegrityItemListenerImpl extends hudson.model.listeners.ItemListener
This class implements the onCopied event when a Job is copied from another Job The sole purpose is to ensure that the Configuration Name parameter is unique. In addition, this is also used to clean up Integrity SCM cache tables when a Job is purged.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCopied(hudson.model.Item src, hudson.model.Item tgt)
    This overridden event ensures the Integrity CM's Configuration Name parameter is unique
    void
    onDeleted(hudson.model.Item item)
    Cleans up the Integrity SCM plugin database's cache tables, if appropriate

    Methods inherited from class hudson.model.listeners.ItemListener

    all, checkBeforeCopy, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCreated, onLoaded, onLocationChanged, onRenamed, onUpdated, register

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IntegrityItemListenerImpl

      @DataBoundConstructor public IntegrityItemListenerImpl()
  • Method Details

    • onCopied

      public void onCopied(hudson.model.Item src, hudson.model.Item tgt)
      This overridden event ensures the Integrity CM's Configuration Name parameter is unique
      Overrides:
      onCopied in class hudson.model.listeners.ItemListener
    • onDeleted

      public void onDeleted(hudson.model.Item item)
      Cleans up the Integrity SCM plugin database's cache tables, if appropriate
      Overrides:
      onDeleted in class hudson.model.listeners.ItemListener