com.atlassian.bamboo.author
Interface ExtendedAuthorManager

All Superinterfaces:
AuthorManager
All Known Implementing Classes:
HibernateAuthorManagerImpl

public interface ExtendedAuthorManager
extends AuthorManager


Method Summary
 java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author)
           
 java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author)
           
 java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author)
           
 java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
           
 java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author)
           
 ExtendedAuthor generateOrRetrieveAuthorFromCommit(Commit commit, java.lang.String authorName)
          Either retrieves an existing author (if exists) or creates a new one (if author does not exist) for a given commit
 java.util.Set<ExtendedAuthor> getAllUnlinkedAuthors()
           
 ExtendedAuthor getAuthorById(long id)
           
 ExtendedAuthor getExtendedAuthorByName(java.lang.String name)
           
 java.util.List<ExtendedAuthor> getLinkedAuthorForUser(com.atlassian.user.User user)
           
 void removeAuthor(ExtendedAuthor extendedAuthor)
          removes an author
 void saveAuthor(Author author)
          Save the author
 
Methods inherited from interface com.atlassian.bamboo.author.AuthorManager
getAllAuthors, getAuthorByName, getAuthorsInBuild
 

Method Detail

getAllUnlinkedAuthors

java.util.Set<ExtendedAuthor> getAllUnlinkedAuthors()
Returns:
Set of ExtendedAuthor objects not linked to users

getExtendedAuthorByName

ExtendedAuthor getExtendedAuthorByName(java.lang.String name)
Parameters:
name -
Returns:
ExtendedAuthor with given name (assuming unique)

generateOrRetrieveAuthorFromCommit

ExtendedAuthor generateOrRetrieveAuthorFromCommit(Commit commit,
                                                  java.lang.String authorName)
Either retrieves an existing author (if exists) or creates a new one (if author does not exist) for a given commit

Parameters:
commit -
authorName -
Returns:
ExtendedAuthor which made the commit.

saveAuthor

void saveAuthor(Author author)
Save the author

Parameters:
author -

findBuildResultsTriggeredByAuthor

java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author

findBuildResultsFailedByAuthor

java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author and failed

findBuildResultsSuccessfulByAuthor

java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author and successful

findBuildResultsBrokenByAuthor

java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
List of BuildResultsSummary broken by author

findBuildResultsFixedByAuthor

java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
List of BuildResultsSummary fixed by author

getAuthorById

ExtendedAuthor getAuthorById(long id)
Returns:
Author given id

getLinkedAuthorForUser

java.util.List<ExtendedAuthor> getLinkedAuthorForUser(com.atlassian.user.User user)
Parameters:
user -
Returns:
List of ExtendedAuthor linked to the user.

removeAuthor

void removeAuthor(ExtendedAuthor extendedAuthor)
removes an author

Parameters:
extendedAuthor -


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.