Enum Class WebhookRegistration

java.lang.Object
java.lang.Enum<WebhookRegistration>
org.jenkinsci.plugin.gitea.WebhookRegistration
All Implemented Interfaces:
Serializable, Comparable<WebhookRegistration>, Constable

public enum WebhookRegistration extends Enum<WebhookRegistration>
Enumeration of the different webhook registration modes.
  • Enum Constant Details

    • DISABLE

      public static final WebhookRegistration DISABLE
      Disable webhook registration.
    • SYSTEM

      public static final WebhookRegistration SYSTEM
      Use the global system configuration for webhook registration. (If the GiteaServers does not have webhook registration configured then this will be the same as DISABLE)
    • ITEM

      public static final WebhookRegistration ITEM
      Use the item scoped credentials to register the webhook.
  • Method Details

    • values

      public static WebhookRegistration[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WebhookRegistration valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null