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>
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.author.Author
UNKNOWN_AUTHOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggeredBuildResult
(ResultsSummary resultsSummary) int
compareTo
(AuthorContext otherAuthor) boolean
Gets all builds triggered by the authorGet the build results broken by the author.getEmail()
Gets all the builds triggered by the author that failed.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
TODO @FIXME Currently assumes a fixed format@NotNull String
getName()
Unique name identifying an author.int
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
Gets number of the builds triggered by the author that failed.int
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
Gets number of the builds triggered by the author that were successful.int
Gets number of builds triggered by the authorGets all the builds triggered by the author that was successful.Gets all builds triggered by the author Depending on implementation number of results may be limited to arbitrary valueint
hashCode()
void
void
setLinkedUserName
(@Nullable String linkedUserName) void
toString()
-
Constructor Details
-
ChangeAuthor
-
-
Method Details
-
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
-
getFullName
TODO @FIXME Currently assumes a fixed format- Specified by:
getFullName
in interfaceAuthor
- Returns:
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AuthorContext>
-
hashCode
public int hashCode() -
toString
-
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
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
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
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
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
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
- Specified by:
getLinkedUserName
in interfaceAuthorContext
-
setLinkedUserName
- Specified by:
setLinkedUserName
in interfaceAuthorData
-
getEmail
- Specified by:
getEmail
in interfaceAuthorContext
-
setEmail
- Specified by:
setEmail
in interfaceAuthorData
-
addTriggeredBuildResult
-