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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTriggeredBuildResult(ResultsSummary resultsSummary) intcompareTo(AuthorContext otherAuthor) booleanGets 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 StringTODO @FIXME Currently assumes a fixed format@NotNull StringgetName()Unique name identifying an author.intGet 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.intGets number of the builds triggered by the author that failed.intGet 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.intGets number of the builds triggered by the author that were successful.intGets 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 valueinthashCode()voidvoidsetLinkedUserName(@Nullable String linkedUserName) voidtoString()
-
Constructor Details
-
ChangeAuthor
-
-
Method Details
-
getName
Description copied from interface:AuthorContextUnique name identifying an author.- Specified by:
getNamein interfaceAuthorContext- Specified by:
getNamein interfaceNameProvider- Returns:
- identifying alias
-
setName
-
getFullName
TODO @FIXME Currently assumes a fixed format- Specified by:
getFullNamein interfaceAuthor- Returns:
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<AuthorContext>
-
hashCode
public int hashCode() -
toString
-
getBreakages
Description copied from interface:AuthorGet 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:
getBreakagesin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getFixes
Description copied from interface:AuthorGet 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:
getFixesin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getFailedBuilds
Description copied from interface:AuthorGets all the builds triggered by the author that failed. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getFailedBuildsin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getSuccessfulBuilds
Description copied from interface:AuthorGets all the builds triggered by the author that was successful. Depending on implementation number of results may be limited to arbitrary value- Specified by:
getSuccessfulBuildsin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getTriggeredBuildResults
Description copied from interface:AuthorGets all builds triggered by the author Depending on implementation number of results may be limited to arbitrary value- Specified by:
getTriggeredBuildResultsin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getAllTriggeredBuildResults
Description copied from interface:AuthorGets all builds triggered by the author- Specified by:
getAllTriggeredBuildResultsin interfaceAuthor- Returns:
- a
ListofResultsSummary
-
getNumberOfBreakages
public int getNumberOfBreakages()Description copied from interface:AuthorGet 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:
getNumberOfBreakagesin interfaceAuthor- Returns:
- int
-
getNumberOfFixes
public int getNumberOfFixes()Description copied from interface:AuthorGet 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:
getNumberOfFixesin interfaceAuthor- Returns:
- int
-
getNumberOfFailedBuilds
public int getNumberOfFailedBuilds()Description copied from interface:AuthorGets number of the builds triggered by the author that failed.- Specified by:
getNumberOfFailedBuildsin interfaceAuthor- Returns:
- int
-
getNumberOfSuccessfulBuilds
public int getNumberOfSuccessfulBuilds()Description copied from interface:AuthorGets number of the builds triggered by the author that were successful.- Specified by:
getNumberOfSuccessfulBuildsin interfaceAuthor- Returns:
- int
-
getNumberOfTriggeredBuilds
public int getNumberOfTriggeredBuilds()Description copied from interface:AuthorGets number of builds triggered by the author- Specified by:
getNumberOfTriggeredBuildsin interfaceAuthor- Returns:
- int
-
getLinkedUserName
- Specified by:
getLinkedUserNamein interfaceAuthorContext
-
setLinkedUserName
- Specified by:
setLinkedUserNamein interfaceAuthorData
-
getEmail
- Specified by:
getEmailin interfaceAuthorContext
-
setEmail
- Specified by:
setEmailin interfaceAuthorData
-
addTriggeredBuildResult
-