|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorDao
Method Summary | |
---|---|
java.util.Collection<? extends ExtendedAuthor> |
findAll()
Get all ExtendedAuthor entities |
java.util.List<Author> |
findAuthorsByLinkedUser(java.lang.String userSearchString)
Performs a case insensitive search for authors by their linkedUserName. |
java.util.List<Author> |
findAuthorsByName(java.lang.String authorSearchString)
Performs a case insensitive search for authors by their author name. |
java.util.List<Author> |
findAuthorsThatStartWith(java.lang.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. |
java.util.Set<ExtendedAuthor> |
getAllUnlinkedAuthors()
|
ExtendedAuthor |
getAuthorByName(java.lang.String name)
|
java.util.List<ResultsSummary> |
getBuildResultsBrokenByAuthor(ExtendedAuthor author,
int maxResultCount)
|
java.util.List<ResultsSummary> |
getBuildResultsFailedByAuthor(ExtendedAuthor author,
int maxResultCount)
|
java.util.List<ResultsSummary> |
getBuildResultsFixedByAuthor(ExtendedAuthor author,
int maxResultCount)
|
java.util.List<ResultsSummary> |
getBuildResultsSuccessfulByAuthor(ExtendedAuthor author,
int maxResultCount)
|
java.util.List<ResultsSummary> |
getBuildResultsTriggeredByAuthor(ExtendedAuthor author,
int maxResultCount)
|
java.util.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)
|
java.util.List<ResultsSummary> |
getRecentResultsTriggeredByAuthors(java.util.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,
java.util.List<java.lang.Long> authorIds)
Updates list of Authors linked to a User. |
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao |
---|
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll |
Method Detail |
---|
@Nullable ExtendedAuthor findById(long id)
ExtendedAuthor
object of a given id.
id
- id of Author
to be found
ExtendedAuthor
object or null if not found@NotNull java.util.Collection<? extends ExtendedAuthor> findAll()
ExtendedAuthor
entities
ExtendedAuthor
ExtendedAuthor getAuthorByName(java.lang.String name)
name
-
ExtendedAuthor
object given an author name@NotNull java.util.List<ResultsSummary> getBuildResultsTriggeredByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
-
List
of BuildResultsSummary
triggered by author@NotNull java.util.List<ResultsSummary> getBuildResultsFailedByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
-
List
of BuildResultsSummary
triggered by author and failed@NotNull java.util.List<ResultsSummary> getBuildResultsSuccessfulByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
-
List
of BuildResultsSummary
triggered by author and succesful@NotNull java.util.List<ResultsSummary> getBuildResultsBrokenByAuthor(ExtendedAuthor author, int maxResultCount)
author
- maxResultCount
-
List
of BuildResultsSummary
broken by author@NotNull java.util.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 java.util.Set<ExtendedAuthor> getAllUnlinkedAuthors()
Set
of ExtendedAuthor
which are not yet linked to any user.@NotNull java.util.List<ExtendedAuthor> getLinkedAuthorsForUser(com.atlassian.user.User user)
user
-
List
of ExtendedAuthor
which are linked to a given user.java.util.List<ResultsSummary> getRecentResultsTriggeredByAuthors(java.util.List<ExtendedAuthor> author, int maxDays)
author
- the builds will be triggered bymaxDays
- number of days to look back in history
void unlinkLinkedAuthors(@NotNull com.atlassian.user.User user)
user
- uservoid updateLinkedAuthors(@NotNull com.atlassian.user.User user, @NotNull java.util.List<java.lang.Long> authorIds)
Author
s with id listed in authorIds will be linked to user
user
- userauthorIds
- list of Author
id that should be linked to user@NotNull java.util.List<Author> findAuthorsByName(@NotNull java.lang.String authorSearchString)
authorSearchString
- string to search for
@NotNull java.util.List<Author> findAuthorsThatStartWith(java.lang.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 java.util.List<Author> findAuthorsByLinkedUser(@NotNull java.lang.String userSearchString)
userSearchString
- string to search for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |