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, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

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
 
Constructor Summary
AuthorImpl()
           
AuthorImpl(java.lang.String name)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.util.List<BuildResultsSummary> getBreakages()
          Get the build results broken by the author.
 ExtendedAuthorManager getExtendedAuthorManager()
           
 java.util.List<BuildResultsSummary> getFailedBuilds()
          Gets all the builds triggered by the author that failed.
 java.util.List<BuildResultsSummary> 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
 java.util.List<BuildResultsSummary> getSuccessfulBuilds()
          Gets all the builds triggered by the author that was successful.
 java.util.List<BuildResultsSummary> getTriggeredBuildResults()
          Gets all builds tirggered by the author
 int hashCode()
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setBreakages(java.util.List breakages)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setFailedBuilds(java.util.List failedBuilds)
           
 void setFixes(java.util.List fixes)
           
 void setLinkedUserName(java.lang.String linkedUserName)
           
 void setName(java.lang.String name)
           
 void setSuccessfulBuilds(java.util.List successfulBuilds)
           
 void setTriggeredBuildResults(java.util.List triggeredBuildResults)
           
 
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)
Method Detail

getName

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

Specified by:
getName in interface Author
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<BuildResultsSummary> 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 succesful.

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

setBreakages

public void setBreakages(java.util.List breakages)

getFixes

public java.util.List<BuildResultsSummary> 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.

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

setFixes

public void setFixes(java.util.List fixes)

getSuccessfulBuilds

public java.util.List<BuildResultsSummary> getSuccessfulBuilds()
Description copied from interface: Author
Gets all the builds triggered by the author that was successful.

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

setSuccessfulBuilds

public void setSuccessfulBuilds(java.util.List successfulBuilds)

getFailedBuilds

public java.util.List<BuildResultsSummary> getFailedBuilds()
Description copied from interface: Author
Gets all the builds triggered by the author that failed.

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

setFailedBuilds

public void setFailedBuilds(java.util.List failedBuilds)

getTriggeredBuildResults

public java.util.List<BuildResultsSummary> getTriggeredBuildResults()
Description copied from interface: Author
Gets all builds tirggered by the author

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

setTriggeredBuildResults

public void setTriggeredBuildResults(java.util.List triggeredBuildResults)

getLinkedUserName

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

setLinkedUserName

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

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(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.