Class Overview
Describes the outcome of a repository-hook
preUpdate
invocation.
Summary
Nested Classes |
class |
RepositoryHookResult.Builder |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
Returns
- result that accepts the proposed request
public
boolean
equals
(Object o)
Returns
- a list of vetoes that describe why the request was rejected. Empty if the request was accepted.
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