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(AuthorData 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()
Get a full name for display purposes
|
String |
getLinkedUserName() |
String |
getName()
Unique name identifying an author.
|
String |
getNameForUrl()
Returns a url encoded string of the author name
Originally for BAM-1298 - backslashes in author names
|
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()
AuthorDatagetName in interface AuthorDatagetName in interface NameProviderpublic void setName(@NotNull
String name)
public String getNameForUrl()
AuthorgetNameForUrl in interface Author@NotNull public String getFullName()
AuthorgetFullName in interface Authorpublic int compareTo(AuthorData otherAuthor)
compareTo in interface Comparable<AuthorData>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 AuthorDatapublic void setLinkedUserName(@Nullable
String linkedUserName)
setLinkedUserName in interface AuthorDatapublic String getEmail()
getEmail in interface AuthorDatapublic void setEmail(@Nullable
String email)
setEmail in interface AuthorDatapublic void addTriggeredBuildResult(ResultsSummary resultsSummary)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.