public static final class CauseOfInterruption.UserInterruption extends CauseOfInterruption
CauseOfInterruption.UserInterruption
Constructor and Description |
---|
UserInterruption(String userId) |
UserInterruption(User user) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getShortDescription()
Human readable description of why the build is cancelled.
|
User |
getUser()
Gets user, who caused the interruption.
|
String |
getUserId()
Gets ID of the user, who interrupted the build.
|
User |
getUserOrNull()
Gets user, who caused the interruption.
|
int |
hashCode() |
void |
print(TaskListener listener)
Report a line to the listener about this cause.
|
public UserInterruption(@NonNull User user)
public UserInterruption(@NonNull String userId)
@NonNull public String getUserId()
@NonNull public User getUser()
User.getUnknown()
otherwise@CheckForNull public User getUserOrNull()
null
if it has not been foundpublic String getShortDescription()
CauseOfInterruption
getShortDescription
in class CauseOfInterruption
public void print(TaskListener listener)
CauseOfInterruption
print
in class CauseOfInterruption
Copyright © 2004–2021. All rights reserved.