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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryHookResultaccepted()booleaninthashCode()booleanbooleanstatic 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:
trueif the request was accepted
-
isRejected
public boolean isRejected()- Returns:
trueif the request was rejected
-