public class ChangeAuthor extends Object implements Author
UNKNOWN_AUTHOR
Constructor and Description |
---|
ChangeAuthor(@NotNull 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.
|
@NotNull String |
getFullName()
TODO @FIXME Currently assumes a fixed format
|
String |
getLinkedUserName() |
@NotNull 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(@Nullable String email) |
void |
setLinkedUserName(@Nullable String linkedUserName) |
void |
setName(@NotNull String name) |
String |
toString() |
public ChangeAuthor(@NotNull @NotNull String name)
@NotNull public @NotNull String getName()
AuthorContext
getName
in interface AuthorContext
getName
in interface NameProvider
public void setName(@NotNull @NotNull String name)
@NotNull public @NotNull String getFullName()
getFullName
in interface Author
public int compareTo(AuthorContext otherAuthor)
compareTo
in interface Comparable<AuthorContext>
public List<ResultsSummary> getBreakages()
Author
getBreakages
in interface Author
List
of ResultsSummary
public List<ResultsSummary> getFixes()
Author
getFixes
in interface Author
List
of ResultsSummary
public List<ResultsSummary> getFailedBuilds()
Author
getFailedBuilds
in interface Author
List
of ResultsSummary
public List<ResultsSummary> getSuccessfulBuilds()
Author
getSuccessfulBuilds
in interface Author
List
of ResultsSummary
public List<ResultsSummary> getTriggeredBuildResults()
Author
getTriggeredBuildResults
in interface Author
List
of ResultsSummary
public List<ResultsSummary> getAllTriggeredBuildResults()
Author
getAllTriggeredBuildResults
in interface Author
List
of ResultsSummary
public int getNumberOfBreakages()
Author
getNumberOfBreakages
in interface Author
public int getNumberOfFixes()
Author
getNumberOfFixes
in interface Author
public int getNumberOfFailedBuilds()
Author
getNumberOfFailedBuilds
in interface Author
public int getNumberOfSuccessfulBuilds()
Author
getNumberOfSuccessfulBuilds
in interface Author
public int getNumberOfTriggeredBuilds()
Author
getNumberOfTriggeredBuilds
in interface Author
public String getLinkedUserName()
getLinkedUserName
in interface AuthorContext
public void setLinkedUserName(@Nullable @Nullable String linkedUserName)
setLinkedUserName
in interface AuthorData
public String getEmail()
getEmail
in interface AuthorContext
public void setEmail(@Nullable @Nullable String email)
setEmail
in interface AuthorData
public void addTriggeredBuildResult(ResultsSummary resultsSummary)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.