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:
  • Constructor Details

    • ChangeAuthor

      public ChangeAuthor(@NotNull @NotNull String name)
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Description copied from interface: AuthorContext
      Unique name identifying an author.
      Specified by:
      getName in interface AuthorContext
      Specified by:
      getName in interface NameProvider
      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 interface Author
      Returns:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(AuthorContext otherAuthor)
      Specified by:
      compareTo in interface Comparable<AuthorContext>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 interface Author
      Returns:
      a List of ResultsSummary
    • 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 interface Author
      Returns:
      a List of ResultsSummary
    • 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 interface Author
      Returns:
      a List of ResultsSummary
    • 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 interface Author
      Returns:
      a List of ResultsSummary
    • 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 interface Author
      Returns:
      a List of ResultsSummary
    • getAllTriggeredBuildResults

      public List<ResultsSummary> getAllTriggeredBuildResults()
      Description copied from interface: Author
      Gets all builds triggered by the author
      Specified by:
      getAllTriggeredBuildResults in interface Author
      Returns:
      a List of ResultsSummary
    • 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 interface Author
      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 interface Author
      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 interface Author
      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 interface Author
      Returns:
      int
    • getNumberOfTriggeredBuilds

      public int getNumberOfTriggeredBuilds()
      Description copied from interface: Author
      Gets number of builds triggered by the author
      Specified by:
      getNumberOfTriggeredBuilds in interface Author
      Returns:
      int
    • getLinkedUserName

      public String getLinkedUserName()
      Specified by:
      getLinkedUserName in interface AuthorContext
    • setLinkedUserName

      public void setLinkedUserName(@Nullable @Nullable String linkedUserName)
      Specified by:
      setLinkedUserName in interface AuthorData
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface AuthorContext
    • setEmail

      public void setEmail(@Nullable @Nullable String email)
      Specified by:
      setEmail in interface AuthorData
    • addTriggeredBuildResult

      public void addTriggeredBuildResult(ResultsSummary resultsSummary)