public interface AuthorDao extends BambooObjectDao<ExtendedAuthor>
Modifier and Type | Method and Description |
---|---|
Collection<? extends ExtendedAuthor> |
findAll()
Get all
ExtendedAuthor entities |
List<Author> |
findAuthorsByLinkedUser(String userSearchString)
Performs a case insensitive search for authors by their linkedUserName.
|
List<Author> |
findAuthorsByName(String authorSearchString)
Performs a case insensitive search for authors by their author name.
|
List<Author> |
findAuthorsThatStartWith(String authorSearchString,
boolean unlinkedOnly)
Performs a case insensitive search for authors by their author name.
|
ExtendedAuthor |
findById(long id)
Find an
ExtendedAuthor object of a given id. |
Set<ExtendedAuthor> |
getAllUnlinkedAuthors() |
ExtendedAuthor |
getAuthorByName(String name) |
Set<Author> |
getAuthorsByResultSummary(ResultsSummary resultsSummary)
Retrieve unique set of authors that contributed to commits related to a given ResultsSummary
|
List<ResultsSummary> |
getBuildResultsBrokenByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
getBuildResultsFailedByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
getBuildResultsFixedByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
getBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ResultsSummary> |
getBuildResultsTriggeredByAuthor(ExtendedAuthor author,
int maxResultCount) |
List<ExtendedAuthor> |
getLinkedAuthorsForUser(com.atlassian.user.User user) |
int |
getNumberOfBuildBrokenByAuthor(ExtendedAuthor author) |
int |
getNumberOfBuildFixedByAuthor(ExtendedAuthor author) |
int |
getNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author) |
int |
getNumberOfFailedBuildsByAuthor(ExtendedAuthor author) |
int |
getNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author) |
List<ResultsSummary> |
getRecentResultsTriggeredByAuthors(List<ExtendedAuthor> author,
int maxDays)
Retrieve all build results triggered by the author in the last X days
|
void |
unlinkLinkedAuthors(com.atlassian.user.User user)
Removes the link between User and all Author entities, User was linked to
|
void |
updateLinkedAuthors(com.atlassian.user.User user,
List<Long> authorIds)
Updates list of Authors linked to a User.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable ExtendedAuthor findById(long id)
ExtendedAuthor
object of a given id.id
- id of Author
to be foundExtendedAuthor
object or null if not found@NotNull Collection<? extends ExtendedAuthor> findAll()
ExtendedAuthor
entitiesExtendedAuthor
@Nullable ExtendedAuthor getAuthorByName(String name)
name
- ExtendedAuthor
object given an author name@NotNull List<ResultsSummary> getBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author@NotNull List<ResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author and failed@NotNull List<ResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author and succesful@NotNull List<ResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
broken by author@NotNull List<ResultsSummary> getBuildResultsFixedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
fixed by authorint getNumberOfBuildsTriggeredByAuthor(ExtendedAuthor author)
author
- int getNumberOfFailedBuildsByAuthor(ExtendedAuthor author)
author
- int getNumberOfSuccessfulBuildsByAuthor(ExtendedAuthor author)
author
- int getNumberOfBuildFixedByAuthor(ExtendedAuthor author)
author
- int getNumberOfBuildBrokenByAuthor(ExtendedAuthor author)
author
- @NotNull Set<ExtendedAuthor> getAllUnlinkedAuthors()
Set
of ExtendedAuthor
which are not yet linked to any user.@NotNull List<ExtendedAuthor> getLinkedAuthorsForUser(com.atlassian.user.User user)
user
- List
of ExtendedAuthor
which are linked to a given user.List<ResultsSummary> getRecentResultsTriggeredByAuthors(List<ExtendedAuthor> author, int maxDays)
author
- the builds will be triggered bymaxDays
- number of days to look back in historyvoid unlinkLinkedAuthors(@NotNull com.atlassian.user.User user)
user
- uservoid updateLinkedAuthors(@NotNull com.atlassian.user.User user, @NotNull List<Long> authorIds)
Author
s with id listed in authorIds will be linked to useruser
- userauthorIds
- list of Author
id that should be linked to user@NotNull List<Author> findAuthorsByName(@NotNull String authorSearchString)
authorSearchString
- string to search for@NotNull List<Author> findAuthorsThatStartWith(String authorSearchString, boolean unlinkedOnly)
authorSearchString
- string to search forunlinkedOnly
- if true will only return users which have not been linked with a user already@NotNull List<Author> findAuthorsByLinkedUser(@NotNull String userSearchString)
userSearchString
- string to search for@NotNull Set<Author> getAuthorsByResultSummary(@NotNull ResultsSummary resultsSummary)
resultsSummary
- ResultsSummaryCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.