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 RepositoryHookRequests.- Since:
- 5.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionInvoked whenScmExtendedCommandFactory.merge(MergeCommandParameters)is called.An unclassified / not recognized trigger
- 
Method SummaryModifier and TypeMethodDescriptiongetId()booleanReturns 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:
 
- 
MERGEInvoked 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:
 
- 
UNKNOWNAn unclassified / not recognized trigger
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
fromId
- 
getId- Specified by:
- getIdin interface- RepositoryHookTrigger
- Returns:
- the trigger identifier
 
- 
isAbortOnFirstVetopublic boolean isAbortOnFirstVeto()- Specified by:
- isAbortOnFirstVetoin interface- RepositoryHookTrigger
- Returns:
- whether a RepositoryHookService.preUpdate(RepositoryHookRequest)invocation should stop calling otherrepository-hookmodules after the first veto. Returnfalseif all hooks need to be called even after one hook vetoes the request.
 
 
-