com.atlassian.bamboo.author
Class AuthorImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.author.AuthorImpl
All Implemented Interfaces:
Author, ExtendedAuthor, BambooObject, NameProvider, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Author>

public class AuthorImpl
extends BambooEntityObject
implements ExtendedAuthor, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.author.Author
UNKNOWN_AUTHOR
 
Constructor Summary
AuthorImpl()
           
AuthorImpl(java.lang.String name)
           
AuthorImpl(java.lang.String name, java.lang.String linkedUserName)
           
 
Method Summary
 int compareTo(Author otherAuthor)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<ResultsSummary> getAllTriggeredBuildResults()
          Get all builds triggered by this author for reporting purpose.
 java.util.List<ResultsSummary> getBreakages()
          Get up to MAX_RESULT_COUNT last broken builds triggered by this author.
 ExtendedAuthorManager getExtendedAuthorManager()
           
 java.util.List<ResultsSummary> getFailedBuilds()
          Get up to MAX_RESULT_COUNT last failed builds triggered by this author.
 java.util.List<ResultsSummary> getFixes()
          Get up to MAX_RESULT_COUNT last fixed builds triggered by this author.
 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 succesful 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()
          Get up to MAX_RESULT_COUNT last successful builds triggered by this author.
 java.util.List<ResultsSummary> getTriggeredBuildResults()
          Get up to MAX_RESULT_COUNT last triggered by this author.
 int hashCode()
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLinkedUserName(java.lang.String linkedUserName)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

AuthorImpl

public AuthorImpl()

AuthorImpl

public AuthorImpl(java.lang.String name)

AuthorImpl

public AuthorImpl(java.lang.String name,
                  java.lang.String linkedUserName)
Method Detail

getName

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

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

setName

public void setName(java.lang.String name)

getFullName

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

Specified by:
getFullName in interface Author
Returns:
full name

getBreakages

public java.util.List<ResultsSummary> getBreakages()
Get up to MAX_RESULT_COUNT last broken builds triggered by this author.

Specified by:
getBreakages in interface Author
Returns:
List of BuildResultsSummary

getFixes

public java.util.List<ResultsSummary> getFixes()
Get up to MAX_RESULT_COUNT last fixed builds triggered by this author.

Specified by:
getFixes in interface Author
Returns:
List of BuildResultsSummary

getSuccessfulBuilds

public java.util.List<ResultsSummary> getSuccessfulBuilds()
Get up to MAX_RESULT_COUNT last successful builds triggered by this author.

Specified by:
getSuccessfulBuilds in interface Author
Returns:
List of BuildResultsSummary

getFailedBuilds

public java.util.List<ResultsSummary> getFailedBuilds()
Get up to MAX_RESULT_COUNT last failed builds triggered by this author.

Specified by:
getFailedBuilds in interface Author
Returns:
List of BuildResultsSummary

getTriggeredBuildResults

public java.util.List<ResultsSummary> getTriggeredBuildResults()
Get up to MAX_RESULT_COUNT last triggered by this author.

Specified by:
getTriggeredBuildResults in interface Author
Returns:
List of BuildResultsSummary

getAllTriggeredBuildResults

public java.util.List<ResultsSummary> getAllTriggeredBuildResults()
Get all builds triggered by this author for reporting purpose.

Specified by:
getAllTriggeredBuildResults in interface Author
Returns:
List of BuildResultsSummary

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 succesful and the previous one failed.

Specified by:
getNumberOfBreakages in interface Author
Returns:
Number of builds broken by this author.

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:
Number of builds fixed by this author.

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:
Number of builds that were triggered by this author and failed.

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:
Number of builds that were triggered by this author and succeeded.

getNumberOfTriggeredBuilds

public int getNumberOfTriggeredBuilds()
Description copied from interface: Author
Gets number of builds triggered by the author

Specified by:
getNumberOfTriggeredBuilds in interface Author
Returns:
Number of builds that were triggered by this author.

getLinkedUserName

public java.lang.String getLinkedUserName()
Specified by:
getLinkedUserName in interface Author

setLinkedUserName

public void setLinkedUserName(java.lang.String linkedUserName)
Specified by:
setLinkedUserName in interface Author

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

getExtendedAuthorManager

public ExtendedAuthorManager getExtendedAuthorManager()

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

compareTo

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


Copyright © 2011 Atlassian. All Rights Reserved.