Enum HookEventType
- java.lang.Object
-
- java.lang.Enum<HookEventType>
-
- com.cloudbees.jenkins.plugins.bitbucket.hooks.HookEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<HookEventType>
public enum HookEventType extends Enum<HookEventType>
Bitbucket hooks types managed by this plugin.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PULL_REQUEST_APPROVED
PULL_REQUEST_CREATED
PULL_REQUEST_DECLINED
PULL_REQUEST_MERGED
PULL_REQUEST_UPDATED
PUSH
SERVER_PING
Sent when hitting the "Test connection" button in Bitbucket Server.SERVER_PULL_REQUEST_APPROVED
SERVER_PULL_REQUEST_DECLINED
SERVER_PULL_REQUEST_DELETED
SERVER_PULL_REQUEST_FROM_REF_UPDATED
SERVER_PULL_REQUEST_MERGED
SERVER_PULL_REQUEST_MODIFIED
SERVER_PULL_REQUEST_OPENED
SERVER_PULL_REQUEST_REVIEWER_UPDATED
SERVER_REFS_CHANGED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HookEventType
fromString(String key)
String
getKey()
HookProcessor
getProcessor()
static HookEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static HookEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUSH
public static final HookEventType PUSH
-
PULL_REQUEST_CREATED
public static final HookEventType PULL_REQUEST_CREATED
-
PULL_REQUEST_UPDATED
public static final HookEventType PULL_REQUEST_UPDATED
-
PULL_REQUEST_MERGED
public static final HookEventType PULL_REQUEST_MERGED
-
PULL_REQUEST_DECLINED
public static final HookEventType PULL_REQUEST_DECLINED
-
PULL_REQUEST_APPROVED
public static final HookEventType PULL_REQUEST_APPROVED
-
SERVER_REFS_CHANGED
public static final HookEventType SERVER_REFS_CHANGED
- Since:
- Bitbucket Server 5.4
- See Also:
- Eventpayload-Push
-
SERVER_PULL_REQUEST_OPENED
public static final HookEventType SERVER_PULL_REQUEST_OPENED
- Since:
- Bitbucket Server 5.4
- See Also:
- Eventpayload-Opened
-
SERVER_PULL_REQUEST_MERGED
public static final HookEventType SERVER_PULL_REQUEST_MERGED
- Since:
- Bitbucket Server 5.4
- See Also:
- Eventpayload-Merged
-
SERVER_PULL_REQUEST_DECLINED
public static final HookEventType SERVER_PULL_REQUEST_DECLINED
- Since:
- Bitbucket Server 5.4
-
SERVER_PULL_REQUEST_DELETED
public static final HookEventType SERVER_PULL_REQUEST_DELETED
- Since:
- Bitbucket Server 5.4
-
SERVER_PULL_REQUEST_APPROVED
public static final HookEventType SERVER_PULL_REQUEST_APPROVED
- Since:
- Bitbucket Server 5.4
-
SERVER_PULL_REQUEST_MODIFIED
public static final HookEventType SERVER_PULL_REQUEST_MODIFIED
- Since:
- Bitbucket Server 5.10
- See Also:
- Eventpayload: Pull Request - Modified
-
SERVER_PULL_REQUEST_REVIEWER_UPDATED
public static final HookEventType SERVER_PULL_REQUEST_REVIEWER_UPDATED
- Since:
- Bitbucket Server 5.10
- See Also:
- Eventpayload: Pull Request - Reviewers Updated
-
SERVER_PULL_REQUEST_FROM_REF_UPDATED
public static final HookEventType SERVER_PULL_REQUEST_FROM_REF_UPDATED
- Since:
- Bitbucket Server 7.0
- See Also:
- Eventpayload-Sourcebranchupdated
-
SERVER_PING
public static final HookEventType SERVER_PING
Sent when hitting the "Test connection" button in Bitbucket Server. Apparently undocumented.
-
-
Method Detail
-
values
public static HookEventType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HookEventType c : HookEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HookEventType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
@CheckForNull public static HookEventType fromString(String key)
-
getProcessor
public HookProcessor getProcessor()
-
getKey
public String getKey()
-
-