Package com.atlassian.bamboo.author
Class AuthorImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.author.AuthorDataImpl
com.atlassian.bamboo.author.AuthorImpl
- All Implemented Interfaces:
Author,AuthorContext,AuthorData,ExtendedAuthor,BambooIdProvider,BambooObject,NameProvider,Serializable,Cloneable,Comparable<AuthorContext>
Consider using AuthorCachingFacade or AuthorDataImpl instead of this class.
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.author.Author
UNKNOWN_AUTHOR -
Constructor Summary
ConstructorsConstructorDescriptionAuthorImpl(AuthorContext newAuthor) AuthorImpl(String name) AuthorImpl(String name, String linkedUserName) AuthorImpl(String name, String linkedUserName, String email) -
Method Summary
Modifier and TypeMethodDescriptionGet all builds triggered by this author for reporting purpose.Get up toMAX_RESULT_COUNTlast broken builds triggered by this author.Get up toMAX_RESULT_COUNTlast failed builds triggered by this author.getFixes()Get up toMAX_RESULT_COUNTlast fixed builds triggered by this author.@NotNull StringGet a full name for display purposesintGet 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 authorGet up toMAX_RESULT_COUNTlast successful builds triggered by this author.Get up toMAX_RESULT_COUNTlast triggered by this author.protected ObjectMethods inherited from class com.atlassian.bamboo.author.AuthorDataImpl
compareTo, equals, getEmail, getLinkedUserName, getName, hashCode, setEmail, setLinkedUserName, setNameMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.author.AuthorContext
getEmail, getLinkedUserName, getNameMethods inherited from interface com.atlassian.bamboo.author.AuthorData
setEmail, setLinkedUserNameMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
AuthorImpl
public AuthorImpl() -
AuthorImpl
-
AuthorImpl
-
AuthorImpl
-
AuthorImpl
-
-
Method Details
-
getFullName
Description copied from interface:AuthorGet a full name for display purposes- Specified by:
getFullNamein interfaceAuthor- Returns:
- full name
-
getBreakages
Get up toMAX_RESULT_COUNTlast broken builds triggered by this author.- Specified by:
getBreakagesin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
getFixes
Get up toMAX_RESULT_COUNTlast fixed builds triggered by this author.- Specified by:
getFixesin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
getSuccessfulBuilds
Get up toMAX_RESULT_COUNTlast successful builds triggered by this author.- Specified by:
getSuccessfulBuildsin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
getFailedBuilds
Get up toMAX_RESULT_COUNTlast failed builds triggered by this author.- Specified by:
getFailedBuildsin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
getTriggeredBuildResults
Get up toMAX_RESULT_COUNTlast triggered by this author.- Specified by:
getTriggeredBuildResultsin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
getAllTriggeredBuildResults
Get all builds triggered by this author for reporting purpose.- Specified by:
getAllTriggeredBuildResultsin interfaceAuthor- Returns:
ListofBuildResultsSummary
-
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:
- Number of builds broken by this author.
-
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:
- Number of builds fixed by this author.
-
getNumberOfFailedBuilds
public int getNumberOfFailedBuilds()Description copied from interface:AuthorGets number of the builds triggered by the author that failed.- Specified by:
getNumberOfFailedBuildsin interfaceAuthor- Returns:
- Number of builds that were triggered by this author and failed.
-
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:
- Number of builds that were triggered by this author and succeeded.
-
getNumberOfTriggeredBuilds
public int getNumberOfTriggeredBuilds()Description copied from interface:AuthorGets number of builds triggered by the author- Specified by:
getNumberOfTriggeredBuildsin interfaceAuthor- Returns:
- Number of builds that were triggered by this author.
-
readResolve
-