Package com.atlassian.bamboo.author
Class ChangeAuthor
- java.lang.Object
-
- com.atlassian.bamboo.author.ChangeAuthor
-
- All Implemented Interfaces:
Author
,AuthorContext
,AuthorData
,NameProvider
,Serializable
,Comparable<AuthorContext>
public class ChangeAuthor extends Object implements Author
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.author.Author
UNKNOWN_AUTHOR
-
-
Constructor Summary
Constructors Constructor Description ChangeAuthor(@NotNull String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTriggeredBuildResult(ResultsSummary resultsSummary)
int
compareTo(AuthorContext otherAuthor)
boolean
equals(Object o)
List<ResultsSummary>
getAllTriggeredBuildResults()
Gets all builds triggered by the authorList<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 formatString
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 authorList<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 valueint
hashCode()
void
setEmail(@Nullable String email)
void
setLinkedUserName(@Nullable String linkedUserName)
void
setName(@NotNull String name)
String
toString()
-
-
-
Constructor Detail
-
ChangeAuthor
public ChangeAuthor(@NotNull @NotNull String name)
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:AuthorContext
Unique name identifying an author.- Specified by:
getName
in interfaceAuthorContext
- Specified by:
getName
in interfaceNameProvider
- Returns:
- identifying alias
-
setName
public void setName(@NotNull @NotNull String name)
-
getFullName
@NotNull public @NotNull String getFullName()
TODO @FIXME Currently assumes a fixed format- Specified by:
getFullName
in interfaceAuthor
- Returns:
-
compareTo
public int compareTo(AuthorContext otherAuthor)
- Specified by:
compareTo
in interfaceComparable<AuthorContext>
-
getBreakages
public List<ResultsSummary> getBreakages()
Description copied from interface:Author
Get the build results broken by the author. A build is deemed broken by the author if the build they triggered failed and the previous one was successful. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getBreakages
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getFixes
public List<ResultsSummary> getFixes()
Description copied from interface:Author
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. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getFixes
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getFailedBuilds
public List<ResultsSummary> getFailedBuilds()
Description copied from interface:Author
Gets all the builds triggered by the author that failed. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getFailedBuilds
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getSuccessfulBuilds
public List<ResultsSummary> getSuccessfulBuilds()
Description copied from interface:Author
Gets all the builds triggered by the author that was successful. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getSuccessfulBuilds
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getTriggeredBuildResults
public List<ResultsSummary> getTriggeredBuildResults()
Description copied from interface:Author
Gets all builds triggered by the author Depending on implementation number of results may be limited to arbitrary value- Specified by:
getTriggeredBuildResults
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getAllTriggeredBuildResults
public List<ResultsSummary> getAllTriggeredBuildResults()
Description copied from interface:Author
Gets all builds triggered by the author- Specified by:
getAllTriggeredBuildResults
in interfaceAuthor
- Returns:
- a
List
ofResultsSummary
-
getNumberOfBreakages
public int getNumberOfBreakages()
Description copied from interface:Author
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.- Specified by:
getNumberOfBreakages
in interfaceAuthor
- Returns:
- int
-
getNumberOfFixes
public int getNumberOfFixes()
Description copied from interface:Author
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.- Specified by:
getNumberOfFixes
in interfaceAuthor
- Returns:
- int
-
getNumberOfFailedBuilds
public int getNumberOfFailedBuilds()
Description copied from interface:Author
Gets number of the builds triggered by the author that failed.- Specified by:
getNumberOfFailedBuilds
in interfaceAuthor
- Returns:
- int
-
getNumberOfSuccessfulBuilds
public int getNumberOfSuccessfulBuilds()
Description copied from interface:Author
Gets number of the builds triggered by the author that were successful.- Specified by:
getNumberOfSuccessfulBuilds
in interfaceAuthor
- Returns:
- int
-
getNumberOfTriggeredBuilds
public int getNumberOfTriggeredBuilds()
Description copied from interface:Author
Gets number of builds triggered by the author- Specified by:
getNumberOfTriggeredBuilds
in interfaceAuthor
- Returns:
- int
-
getLinkedUserName
public String getLinkedUserName()
- Specified by:
getLinkedUserName
in interfaceAuthorContext
-
setLinkedUserName
public void setLinkedUserName(@Nullable @Nullable String linkedUserName)
- Specified by:
setLinkedUserName
in interfaceAuthorData
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfaceAuthorContext
-
setEmail
public void setEmail(@Nullable @Nullable String email)
- Specified by:
setEmail
in interfaceAuthorData
-
addTriggeredBuildResult
public void addTriggeredBuildResult(ResultsSummary resultsSummary)
-
-