Class RepositoryHookResult
java.lang.Object
com.atlassian.bitbucket.hook.repository.RepositoryHookResult
Describes the outcome of a
repository-hook
preUpdate
invocation.- Since:
- 5.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryHookResult
accepted()
boolean
int
hashCode()
boolean
boolean
static RepositoryHookResult
-
Method Details
-
accepted
- Returns:
- result that accepts the proposed request
-
rejected
@Nonnull public static RepositoryHookResult rejected(@Nonnull String summaryMessage, @Nonnull String detailMessage) - Parameters:
summaryMessage
- a short summary of the reason the request is rejecteddetailMessage
- a detailed description of the reason for rejecting the request- Returns:
- result that rejects the proposed request
-
equals
-
getVetoes
- Returns:
- a list of vetoes that describe why the request was rejected. Empty if the request was accepted.
-
hashCode
public int hashCode() -
isAccepted
public boolean isAccepted()- Returns:
true
if the request was accepted
-
isRejected
public boolean isRejected()- Returns:
true
if the request was rejected
-