com.atlassian.bamboo.author
Interface ExtendedAuthorManager

All Superinterfaces:
AuthorManager
All Known Implementing Classes:
HibernateAuthorManagerImpl

public interface ExtendedAuthorManager
extends AuthorManager


Method Summary
 void createAndSaveAuthor(java.lang.String authorName)
          Creates and saves author given authorName, if bamboo user with the same username exists the new author will be linked to that user.
 java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author)
          Deprecated. use the method with limited result count instead
 java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author)
          Deprecated. use the method with limited result count instead
 java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author)
          Deprecated. use the method with limited result count instead
 java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
          Deprecated. use the method with limited result count instead
 java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author)
          Deprecated. use the method with limited result count instead
 java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
           
 java.util.Collection<BuildResultsSummary> findLastBuildResultsBrokenByAuthor(ExtendedAuthor author)
          Retrieves the last build broken by author for all the plans.
 int findNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
           
 int findNumberOfBuildFixedByAuthor(ExtendedAuthor author)
           
 int findNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
           
 int findNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
           
 int findNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
           
 ExtendedAuthor generateOrRetrieveAuthorFromCommit(Commit commit, java.lang.String authorName)
          Deprecated. use createAndSaveAuthor(String) when creating one or AuthorManager.getAuthorByName(String) when retrieving
 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
 

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)
Deprecated. use createAndSaveAuthor(String) when creating one or AuthorManager.getAuthorByName(String) when retrieving

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

@Deprecated
java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author)
Deprecated. use the method with limited result count instead

Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author

findBuildResultsTriggeredByAuthor

@NotNull
java.util.List<BuildResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author,
                                                                              int maxResultCount)
Parameters:
author -
maxResultCount - if <= 0 all the results are returned
Returns:
List of BuildResultsSummary triggered by author

findBuildResultsFailedByAuthor

@NotNull
java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author,
                                                                           int maxResultCount)
Parameters:
author -
maxResultCount - if <= 0 all the results are returned
Returns:
List of BuildResultsSummary triggered by author and failed

findBuildResultsFailedByAuthor

@Deprecated
java.util.List<BuildResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author)
Deprecated. use the method with limited result count instead

Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author and failed

findBuildResultsSuccessfulByAuthor

@NotNull
java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
                                                                               int maxResultCount)
Parameters:
author -
maxResultCount - if <= 0 all the results are returned
Returns:
List of BuildResultsSummary triggered by author and successful

findBuildResultsSuccessfulByAuthor

@Deprecated
java.util.List<BuildResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author)
Deprecated. use the method with limited result count instead

Parameters:
author -
Returns:
List of BuildResultsSummary triggered by author and successful

findBuildResultsBrokenByAuthor

@NotNull
java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author,
                                                                           int maxResultCount)
Parameters:
author -
maxResultCount - if <= 0 all the results are returned
Returns:
List of BuildResultsSummary broken by author

findLastBuildResultsBrokenByAuthor

@NotNull
java.util.Collection<BuildResultsSummary> findLastBuildResultsBrokenByAuthor(ExtendedAuthor author)
Retrieves the last build broken by author for all the plans.

Parameters:
author -
Returns:
List of BuildResultsSummary broken by author

findBuildResultsBrokenByAuthor

@Deprecated
java.util.List<BuildResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author)
Deprecated. use the method with limited result count instead

Parameters:
author -
Returns:
List of BuildResultsSummary broken by author

findBuildResultsFixedByAuthor

@NotNull
java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author,
                                                                          int maxResultCount)
Parameters:
author -
maxResultCount - if <= 0 all the results are returned
Returns:
List of BuildResultsSummary fixed by author

findBuildResultsFixedByAuthor

@Deprecated
java.util.List<BuildResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author)
Deprecated. use the method with limited result count instead

Parameters:
author -
Returns:
List of BuildResultsSummary fixed by author

findNumberOfBuildsTriggeredByAuthor

int findNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
int

findNumberOfFailedBuildsByAuthor

int findNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
int

findNumberOfSuccessfulBuildsByAuthor

int findNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
int

findNumberOfBuildFixedByAuthor

int findNumberOfBuildFixedByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
int

findNumberOfBuildBrokenByAuthor

int findNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
Parameters:
author -
Returns:
int

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 -

createAndSaveAuthor

void createAndSaveAuthor(java.lang.String authorName)
Creates and saves author given authorName, if bamboo user with the same username exists the new author will be linked to that user.

Parameters:
authorName -


Copyright © 2010 Atlassian. All Rights Reserved.