Enum Class StandardRepositoryHookTrigger
java.lang.Object
java.lang.Enum<StandardRepositoryHookTrigger>
com.atlassian.bitbucket.hook.repository.StandardRepositoryHookTrigger
- All Implemented Interfaces:
RepositoryHookTrigger
,Serializable
,Comparable<StandardRepositoryHookTrigger>
,Constable
public enum StandardRepositoryHookTrigger
extends Enum<StandardRepositoryHookTrigger>
implements RepositoryHookTrigger
Built-in trigger types for
repository-hook
RepositoryHookRequest
s.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInvoked whenScmExtendedCommandFactory.merge(MergeCommandParameters)
is called.An unclassified / not recognized trigger -
Method Summary
Modifier and TypeMethodDescriptiongetId()
boolean
Returns the enum constant of this class with the specified name.static StandardRepositoryHookTrigger[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BRANCH_CREATE
- See Also:
-
BRANCH_DELETE
- See Also:
-
FILE_EDIT
- See Also:
-
MERGE
Invoked whenScmExtendedCommandFactory.merge(MergeCommandParameters)
is called. Note that this is a low-level SCM operation and should not generally be intercepted.- See Also:
-
PULL_REQUEST_MERGE
- See Also:
-
REPO_PUSH
- See Also:
-
TAG_CREATE
- See Also:
-
TAG_DELETE
- See Also:
-
UNKNOWN
An unclassified / not recognized trigger
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromId
-
getId
- Specified by:
getId
in interfaceRepositoryHookTrigger
- Returns:
- the trigger identifier
-
isAbortOnFirstVeto
public boolean isAbortOnFirstVeto()- Specified by:
isAbortOnFirstVeto
in interfaceRepositoryHookTrigger
- Returns:
- whether a
RepositoryHookService.preUpdate(RepositoryHookRequest)
invocation should stop calling otherrepository-hook
modules after the first veto. Returnfalse
if all hooks need to be called even after one hook vetoes the request.
-