public interface ExtendedAuthorManager extends AuthorManager
Modifier and Type | Method and Description |
---|---|
void |
createAndSaveAuthor(Author author)
Creates and saves author given author, if bamboo user with the same username exists the new author will be linked to that user.
|
List<Author> |
findAuthorsByName(String authorSearchString)
Performs a case insensitive search for authors by their author name.
|
List<Author> |
findAuthorsByUser(String userSearchString)
Performs a case insensitive search for authors by their linkedUserName.
|
List<Author> |
findAuthorsThatStartWith(String authorSearchString,
boolean unlinkedOnly)
Performs a case insensitive search for authors by their author name.
|
List<ResultsSummary> |
findBuildResultsBrokenByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
findBuildResultsFailedByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
findBuildResultsFixedByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
findBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
findBuildResultsTriggeredByAuthor(ExtendedAuthor author,
int maxResultCount) |
Collection<ResultsSummary> |
findLatestBuildBrokenByAuthorInEachPlan(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) |
List<ResultsSummary> |
findRecentResultsTriggeredByAuthors(List<ExtendedAuthor> author,
int maxDays)
Retrieve all build results triggered by the author in the last X days
|
Set<ExtendedAuthor> |
getAllUnlinkedAuthors() |
ExtendedAuthor |
getAuthorById(long id) |
Set<Author> |
getAuthorsByResultSummary(ResultsSummary resultsSummary)
Retrieve unique set of authors that contributed to commits related to a given ResultsSummary
|
List<ExtendedAuthor> |
getAvailableAuthors(com.atlassian.user.User user)
Get authors available for a user.
|
ExtendedAuthor |
getExtendedAuthorByName(String name)
Get Author information by author name.
|
List<ExtendedAuthor> |
getLinkedAuthorForUser(com.atlassian.user.User user) |
void |
relinkUnlinkedAuthors()
Attempt to link any authors that currently aren't linked with a user.
|
void |
removeAuthor(ExtendedAuthor extendedAuthor)
removes an author
|
void |
saveAuthor(ExtendedAuthor author)
Save the author
|
void |
unlinkAllAuthors()
Remove all author links.
|
getAllAuthors, getAuthorByName
@NotNull Set<ExtendedAuthor> getAllUnlinkedAuthors()
Set
of ExtendedAuthor
objects not linked to usersvoid unlinkAllAuthors()
void relinkUnlinkedAuthors()
ExtendedAuthor getExtendedAuthorByName(String name)
name
- trimmed author nameExtendedAuthor
with given name (assuming unique)void saveAuthor(ExtendedAuthor author)
author
- @NotNull List<ResultsSummary> findBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- if <= 0 all the results are returnedList
of BuildResultsSummary
triggered by authorList<ResultsSummary> findRecentResultsTriggeredByAuthors(List<ExtendedAuthor> author, int maxDays)
author
- the builds will be triggered bymaxDays
- number of days to look back in history@NotNull List<ResultsSummary> findBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- if <= 0 all the results are returnedList
of BuildResultsSummary
triggered by author and failed@NotNull List<ResultsSummary> findBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- if <= 0 all the results are returnedList
of BuildResultsSummary
triggered by author and successful@NotNull List<ResultsSummary> findBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- if <= 0 all the results are returnedList
of BuildResultsSummary
broken by author@NotNull Collection<ResultsSummary> findLatestBuildBrokenByAuthorInEachPlan(ExtendedAuthor author)
author
- List
of BuildResultsSummary
broken by author@NotNull List<ResultsSummary> findBuildResultsFixedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- if <= 0 all the results are returnedList
of BuildResultsSummary
fixed by authorint findNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
author
- int findNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
author
- int findNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
author
- int findNumberOfBuildFixedByAuthor(ExtendedAuthor author)
author
- int findNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
author
- ExtendedAuthor getAuthorById(long id)
id
- Author
given id@NotNull List<ExtendedAuthor> getLinkedAuthorForUser(com.atlassian.user.User user)
user
- List
of ExtendedAuthor
linked to the user.@NotNull List<ExtendedAuthor> getAvailableAuthors(@Nullable com.atlassian.user.User user)
user
- userExtendedAuthor
void removeAuthor(ExtendedAuthor extendedAuthor)
extendedAuthor
- void createAndSaveAuthor(@NotNull Author author)
author
- @NotNull List<Author> findAuthorsByName(@NotNull String authorSearchString)
authorSearchString
- string to search for@NotNull List<Author> findAuthorsThatStartWith(@NotNull String authorSearchString, boolean unlinkedOnly)
authorSearchString
- string to search forunlinkedOnly
- if true will only return users which have not been linked with an user already@NotNull List<Author> findAuthorsByUser(@NotNull String userSearchString)
userSearchString
- string to search for@NotNull Set<Author> getAuthorsByResultSummary(@NotNull ResultsSummary resultsSummary)
resultsSummary
- ResultsSummaryCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.