public class

RepositoryHookResult

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.hook.repository.RepositoryHookResult

Class Overview

Describes the outcome of a repository-hook preUpdate invocation.

Summary

Nested Classes
class RepositoryHookResult.Builder  
Public Methods
@Nonnull static RepositoryHookResult accepted()
boolean equals(Object o)
@Nonnull List<RepositoryHookVeto> getVetoes()
int hashCode()
boolean isAccepted()
boolean isRejected()
@Nonnull static RepositoryHookResult rejected(String summaryMessage, String detailMessage)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public static RepositoryHookResult accepted ()

Returns
  • result that accepts the proposed request

public boolean equals (Object o)

@Nonnull public List<RepositoryHookVeto> getVetoes ()

Returns
  • a list of vetoes that describe why the request was rejected. Empty if the request was accepted.

public int hashCode ()

public boolean isAccepted ()

Returns
  • true if the request was accepted

public boolean isRejected ()

Returns
  • true if the request was rejected

@Nonnull public static RepositoryHookResult rejected (String summaryMessage, String detailMessage)

Parameters
summaryMessage a short summary of the reason the request is rejected
detailMessage a detailed description of the reason for rejecting the request
Returns
  • result that rejects the proposed request