public class ChangeAuthor extends Object implements Author
UNKNOWN_AUTHOR| Constructor and Description |
|---|
ChangeAuthor(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTriggeredBuildResult(ResultsSummary resultsSummary) |
int |
compareTo(AuthorContext otherAuthor) |
boolean |
equals(Object o) |
List<ResultsSummary> |
getAllTriggeredBuildResults()
Gets all builds triggered by the author
|
List<ResultsSummary> |
getBreakages()
Get the build results broken by the author.
|
String |
getEmail() |
List<ResultsSummary> |
getFailedBuilds()
Gets all the builds triggered by the author that failed.
|
List<ResultsSummary> |
getFixes()
Get the build results fixed by the author
A build is deemed fixed by the author if the build they triggered was successful
and the previous one failed.
|
String |
getFullName()
TODO @FIXME Currently assumes a fixed format
|
String |
getLinkedUserName() |
String |
getName()
Unique name identifying an author.
|
int |
getNumberOfBreakages()
Get the number of builds broken by the author
A build is deemed broken by the author if the build they triggered failed
and the previous one was successful.
|
int |
getNumberOfFailedBuilds()
Gets number of the builds triggered by the author that failed.
|
int |
getNumberOfFixes()
Get the number of builds fixed by the author
A build is deemed fixed by the author if the build they triggered was successful
and the previous one failed.
|
int |
getNumberOfSuccessfulBuilds()
Gets number of the builds triggered by the author that were successful.
|
int |
getNumberOfTriggeredBuilds()
Gets number of builds triggered by the author
|
List<ResultsSummary> |
getSuccessfulBuilds()
Gets all the builds triggered by the author that was successful.
|
List<ResultsSummary> |
getTriggeredBuildResults()
Gets all builds triggered by the author
Depending on implementation number of results may be limited to arbitrary value
|
int |
hashCode() |
void |
setEmail(String email) |
void |
setLinkedUserName(String linkedUserName) |
void |
setName(String name) |
String |
toString() |
public ChangeAuthor(@NotNull
String name)
@NotNull public String getName()
AuthorContextgetName in interface AuthorContextgetName in interface NameProviderpublic void setName(@NotNull
String name)
@NotNull public String getFullName()
getFullName in interface Authorpublic int compareTo(AuthorContext otherAuthor)
compareTo in interface Comparable<AuthorContext>public List<ResultsSummary> getBreakages()
AuthorgetBreakages in interface AuthorList of ResultsSummarypublic List<ResultsSummary> getFixes()
AuthorgetFixes in interface AuthorList of ResultsSummarypublic List<ResultsSummary> getFailedBuilds()
AuthorgetFailedBuilds in interface AuthorList of ResultsSummarypublic List<ResultsSummary> getSuccessfulBuilds()
AuthorgetSuccessfulBuilds in interface AuthorList of ResultsSummarypublic List<ResultsSummary> getTriggeredBuildResults()
AuthorgetTriggeredBuildResults in interface AuthorList of ResultsSummarypublic List<ResultsSummary> getAllTriggeredBuildResults()
AuthorgetAllTriggeredBuildResults in interface AuthorList of ResultsSummarypublic int getNumberOfBreakages()
AuthorgetNumberOfBreakages in interface Authorpublic int getNumberOfFixes()
AuthorgetNumberOfFixes in interface Authorpublic int getNumberOfFailedBuilds()
AuthorgetNumberOfFailedBuilds in interface Authorpublic int getNumberOfSuccessfulBuilds()
AuthorgetNumberOfSuccessfulBuilds in interface Authorpublic int getNumberOfTriggeredBuilds()
AuthorgetNumberOfTriggeredBuilds in interface Authorpublic String getLinkedUserName()
getLinkedUserName in interface AuthorContextpublic void setLinkedUserName(@Nullable
String linkedUserName)
setLinkedUserName in interface AuthorDatapublic String getEmail()
getEmail in interface AuthorContextpublic void setEmail(@Nullable
String email)
setEmail in interface AuthorDatapublic void addTriggeredBuildResult(ResultsSummary resultsSummary)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.