com.atlassian.bamboo.author
Class ChangeAuthor

java.lang.Object
  extended by com.atlassian.bamboo.author.ChangeAuthor
All Implemented Interfaces:
Author, AuthorData, NameProvider, java.io.Serializable, java.lang.Comparable<AuthorData>

public class ChangeAuthor
extends java.lang.Object
implements Author

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.atlassian.bamboo.author.Author
UNKNOWN_AUTHOR
 
Constructor Summary
ChangeAuthor(java.lang.String name)
           
 
Method Summary
 void addTriggeredBuildResult(ResultsSummary resultsSummary)
           
 int compareTo(AuthorData otherAuthor)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<ResultsSummary> getAllTriggeredBuildResults()
          Gets all builds triggered by the author
 java.util.List<ResultsSummary> getBreakages()
          Get the build results broken by the author.
 java.util.List<ResultsSummary> getFailedBuilds()
          Gets all the builds triggered by the author that failed.
 java.util.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 succesful and the previous one failed.
 java.lang.String getFullName()
          Get a full name for display purposes
 java.lang.String getLinkedUserName()
           
 java.lang.String getName()
          Unique name identifying an author.
 java.lang.String getNameForUrl()
          Returns a url encoded string of the author name Originally for BAM-1298 - backslashes in author names
 int getNumberOfBreakages()
          Get the number of builds fixed by author A build is deemed fixed by the author if the build they triggered was successful and the previous one failed.
 int getNumberOfFailedBuilds()
          Gets number of the builds triggered by the author that failed.
 int getNumberOfFixes()
          Get the number of builds fixed by author A build is deemed fixed by the author if the build they triggered was succesful 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
 java.util.List<ResultsSummary> getSuccessfulBuilds()
          Gets all the builds triggered by the author that was successful.
 java.util.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 setLinkedUserName(java.lang.String linkedUserName)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeAuthor

public ChangeAuthor(@NotNull
                    java.lang.String name)
Method Detail

getName

@NotNull
public java.lang.String getName()
Description copied from interface: AuthorData
Unique name identifying an author.

Specified by:
getName in interface AuthorData
Specified by:
getName in interface NameProvider
Returns:
identifying alias

setName

public void setName(@NotNull
                    java.lang.String name)

getNameForUrl

public java.lang.String getNameForUrl()
Description copied from interface: Author
Returns a url encoded string of the author name Originally for BAM-1298 - backslashes in author names

Specified by:
getNameForUrl in interface Author
Returns:
url encoded name

getFullName

@NotNull
public java.lang.String getFullName()
Description copied from interface: Author
Get a full name for display purposes

Specified by:
getFullName in interface Author
Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(AuthorData otherAuthor)
Specified by:
compareTo in interface java.lang.Comparable<AuthorData>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBreakages

public java.util.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 java.util.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 succesful 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 java.util.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 java.util.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 java.util.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 java.util.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 fixed by author A build is deemed fixed by the author if the build they triggered was successful and the previous one failed.

Specified by:
getNumberOfBreakages in interface Author
Returns:
int

getNumberOfFixes

public int getNumberOfFixes()
Description copied from interface: Author
Get the number of builds fixed by author A build is deemed fixed by the author if the build they triggered was succesful 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 java.lang.String getLinkedUserName()
Specified by:
getLinkedUserName in interface AuthorData

setLinkedUserName

public void setLinkedUserName(@Nullable
                              java.lang.String linkedUserName)
Specified by:
setLinkedUserName in interface AuthorData

addTriggeredBuildResult

public void addTriggeredBuildResult(ResultsSummary resultsSummary)


Copyright © 2012 Atlassian. All Rights Reserved.