Package com.atlassian.bamboo.comment
Interface CommentDao
- All Superinterfaces:
BambooObjectDao<Comment>
- All Known Implementing Classes:
CommentHibernateDao
-
Method Summary
Modifier and TypeMethodDescriptionvoidanonymizeUserComments(@NotNull String username) Anonymizes all comments related to the specified username.voiddeleteByEntityId(long entityId) Delete Comments related to an entity.intdeleteByEntityId(@NotNull DeletionSQLAdapter deletionAdapter) Delete Comments related to an entity.@Nullable CommentfindById(long id) findCommentByUser(String userName) getCommentsForBuildResults(@NotNull PlanKey planKey) getCommentsForEntity(long entityId) getCommentsForJobResults(@NotNull ChainResultsSummary chainResultsSummary) longscrollCommentsForExport(@NotNull Consumer<Comment> consumer) Scroll through and execute function for each of Comment Objects passed to function are not fully initialized.
-
Method Details
-
findById
-
getCommentsForEntity
-
findCommentByUser
-
getCommentsForBuildResults
-
getCommentsForJobResults
@NotNull @NotNull List<Comment> getCommentsForJobResults(@NotNull @NotNull ChainResultsSummary chainResultsSummary) -
anonymizeUserComments
Anonymizes all comments related to the specified username.This method will remove any user reference from the comments associated with the given username.
- Parameters:
username- the username whose comments are to be anonymized
-
scrollCommentsForExport
Scroll through and execute function for each of Comment Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.- Parameters:
consumer- consumer that will accept each of the Comments- Returns:
- number of traversed rows
-
deleteByEntityId
Delete Comments related to an entity.- Parameters:
deletionAdapter-
-
deleteByEntityId
void deleteByEntityId(long entityId) Delete Comments related to an entity.
-