public interface AuthorDao extends BambooObjectDao<ExtendedAuthor>
Modifier and Type | Method and Description |
---|---|
@NotNull Collection<? extends ExtendedAuthor> |
findAll()
Get all
ExtendedAuthor entities |
@NotNull List<Author> |
findAuthorsByLinkedUser(@NotNull String userSearchString)
Performs a case insensitive search for authors by their linkedUserName.
|
@NotNull List<Author> |
findAuthorsByName(@NotNull String authorSearchString)
Performs a case insensitive search for authors by their author name.
|
@NotNull List<Author> |
findAuthorsThatStartWith(String authorSearchString,
boolean unlinkedOnly)
Performs a case insensitive search for authors by their author name.
|
@Nullable ExtendedAuthor |
findById(long id)
Find an
ExtendedAuthor object of a given id. |
@NotNull Set<ExtendedAuthor> |
getAllUnlinkedAuthors() |
@Nullable ExtendedAuthor |
getAuthorByName(String name) |
@NotNull Set<Author> |
getAuthorsByResultSummary(@NotNull ResultsSummary resultsSummary)
Retrieve unique set of authors that contributed to commits related to a given ResultsSummary
|
@NotNull List<ResultsSummary> |
getBuildResultsBrokenByAuthor(ExtendedAuthor author,
int maxResultCount) |
@NotNull List<ResultsSummary> |
getBuildResultsFailedByAuthor(ExtendedAuthor author,
int maxResultCount) |
@NotNull List<ResultsSummary> |
getBuildResultsFixedByAuthor(ExtendedAuthor author,
int maxResultCount) |
@NotNull List<ResultsSummary> |
getBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
int maxResultCount) |
@NotNull List<ResultsSummary> |
getBuildResultsTriggeredByAuthor(ExtendedAuthor author,
int maxResultCount) |
@NotNull 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(@NotNull String username)
Removes all links between a user and author entities.
|
default void |
unlinkLinkedAuthors(@NotNull com.atlassian.user.User user)
Deprecated.
since 6.8 use
unlinkLinkedAuthors(String) |
void |
updateLinkedAuthors(@NotNull com.atlassian.user.User user,
@NotNull List<Long> authorIds)
Updates list of Authors linked to a User.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable @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 @NotNull Collection<? extends ExtendedAuthor> findAll()
ExtendedAuthor
entitiesExtendedAuthor
@Nullable @Nullable ExtendedAuthor getAuthorByName(String name)
name
- ExtendedAuthor
object given an author name@NotNull @NotNull List<ResultsSummary> getBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author@NotNull @NotNull List<ResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author and failed@NotNull @NotNull List<ResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
triggered by author and succesful@NotNull @NotNull List<ResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
- List
of BuildResultsSummary
broken by author@NotNull @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 @NotNull Set<ExtendedAuthor> getAllUnlinkedAuthors()
Set
of ExtendedAuthor
which are not yet linked to any user.@NotNull @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 history@Deprecated default void unlinkLinkedAuthors(@NotNull @NotNull com.atlassian.user.User user)
unlinkLinkedAuthors(String)
user
- uservoid unlinkLinkedAuthors(@NotNull @NotNull String username)
username
- name of the uservoid updateLinkedAuthors(@NotNull @NotNull com.atlassian.user.User user, @NotNull @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 @NotNull List<Author> findAuthorsByName(@NotNull @NotNull String authorSearchString)
authorSearchString
- string to search for@NotNull @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 @NotNull List<Author> findAuthorsByLinkedUser(@NotNull @NotNull String userSearchString)
userSearchString
- string to search for@NotNull @NotNull Set<Author> getAuthorsByResultSummary(@NotNull @NotNull ResultsSummary resultsSummary)
resultsSummary
- ResultsSummaryCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.