Class AbstractGiteaSCMSourceEvent<E extends GiteaEvent>

java.lang.Object
jenkins.scm.api.SCMEvent<E>
jenkins.scm.api.SCMSourceEvent<E>
org.jenkinsci.plugin.gitea.AbstractGiteaSCMSourceEvent<E>
Type Parameters:
E - the GiteaEvent.
Direct Known Subclasses:
GiteaRepositorySCMEvent

public abstract class AbstractGiteaSCMSourceEvent<E extends GiteaEvent> extends jenkins.scm.api.SCMSourceEvent<E>
Base class for SCMHeadEvent from Gitea.
  • Nested Class Summary

    Nested classes/interfaces inherited from class jenkins.scm.api.SCMEvent

    jenkins.scm.api.SCMEvent.Dispatcher<E extends jenkins.scm.api.SCMEvent<?>>, jenkins.scm.api.SCMEvent.EventQueueMetrics, jenkins.scm.api.SCMEvent.Type
  • Field Summary

    Fields inherited from class jenkins.scm.api.SCMEvent

    ORIGIN_UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractGiteaSCMSourceEvent(jenkins.scm.api.SCMEvent.Type type, E payload, String origin)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isMatch(jenkins.scm.api.SCMNavigator navigator)
    boolean
    isMatch(jenkins.scm.api.SCMSource source)

    Methods inherited from class jenkins.scm.api.SCMSourceEvent

    descriptionFor, descriptionFor, fireLater, fireNow

    Methods inherited from class jenkins.scm.api.SCMEvent

    asCauses, closeExecutorService, description, equals, executorService, getDate, getEventProcessingMetrics, getOrigin, getPayload, getTimestamp, getType, hashCode, originOf, originOf, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractGiteaSCMSourceEvent

      public AbstractGiteaSCMSourceEvent(@NonNull jenkins.scm.api.SCMEvent.Type type, @NonNull E payload, @CheckForNull String origin)
      Constructor.
      Parameters:
      type - the type of event.
      payload - the payload.
      origin - the origin.
  • Method Details

    • isMatch

      public boolean isMatch(@NonNull jenkins.scm.api.SCMNavigator navigator)
      Specified by:
      isMatch in class jenkins.scm.api.SCMSourceEvent<E extends GiteaEvent>
    • getSourceName

      @NonNull public String getSourceName()
      Specified by:
      getSourceName in class jenkins.scm.api.SCMSourceEvent<E extends GiteaEvent>
    • isMatch

      public boolean isMatch(@NonNull jenkins.scm.api.SCMSource source)
      Specified by:
      isMatch in class jenkins.scm.api.SCMSourceEvent<E extends GiteaEvent>