public class NoOpEntityVersioningManager extends Object implements EntityVersioningManager
| Constructor and Description |
|---|
NoOpEntityVersioningManager() |
| Modifier and Type | Method and Description |
|---|---|
long |
cleanAllDeletedEntityVersionsOlderThan(java.time.Duration duration)
Removes all entity version records (issues, comments, & worklogs) for entites marked as deleted and older than
duration. |
void |
cleanDeletedIssueVersion(long issueId)
Remove a deleted issue and its all related comments and worklogs.
|
Optional<Long> |
getCommentVersion(long commentId)
Return the comment version for the comment identified by
commentId or Optional.empty() if there is no version. |
Optional<Long> |
getIssueVersion(long issueId)
Return the issue version for the issue identified by
issueId or Optional.empty() if there is no version. |
Map<Long,Long> |
getRelatedCommentVersions(long parentIssueId)
Return the comment versions for for all comments associated with the specified
parentIssueId. |
Map<Long,Long> |
getRelatedWorklogVersions(long parentIssueId)
Return the worklog versions for for all worklogs associated with the specified
parentIssueId. |
Optional<Long> |
getWorklogVersion(long worklogId)
Return the worklog version for the worklog identified by
worklogId or Optional.empty() if there is no version. |
void |
incrementCommentVersion(long commentId,
long parentIssueId)
Increments the version number for the specified comment.
|
void |
incrementIssueVersion(long issueId)
Increments the version number for the specified issue.
|
void |
incrementRelatedCommentVersions(long issueId)
Bumps the versions for all comments associated with the specified
parentIssueId. |
void |
incrementRelatedWorklogVersions(long issueId)
Bumps the versions for all worklogs associated with the specified
parentIssueId. |
void |
incrementWorklogVersion(long worklogId,
long parentIssueId)
Increments the version number for the specified worklog.
|
void |
markCommentDeletedAndIncrementVersion(long commentId)
Marks the specified comment as deleted and bumps its version by 1.
|
void |
markEntityDeletedAndIncrementVersion(long entityId,
AffectedIndex indexName)
Convenience method for marking entity as deleted and incrementing its version basing on AffectedIndex.
|
void |
markIssueDeletedAndIncrementVersion(long issueId)
Marks the specified issue and all its related comments and worklogs as deleted bumps their versions by 1.
|
void |
markWorklogDeletedAndIncrementVersion(long worklogId)
Marks the specified worklog as deleted and bumps its version by 1.
|
public void incrementIssueVersion(long issueId)
EntityVersioningManagerincrementIssueVersion in interface EntityVersioningManagerissueId - identifier for the issue whose version should be bumpedpublic void incrementCommentVersion(long commentId,
long parentIssueId)
EntityVersioningManagerincrementCommentVersion in interface EntityVersioningManagercommentId - identifier for the comment whose version should be bumpedparentIssueId - identifier for the Issue that the comment belongs topublic void incrementWorklogVersion(long worklogId,
long parentIssueId)
EntityVersioningManagerincrementWorklogVersion in interface EntityVersioningManagerworklogId - identifier for the worklog whose version should be bumpedparentIssueId - identifier for the Issue that the worklog belongs topublic void markIssueDeletedAndIncrementVersion(long issueId)
EntityVersioningManagermarkIssueDeletedAndIncrementVersion in interface EntityVersioningManagerissueId - identifier for issue and all its related comments and worklogs to mark as deleted & whose version number to bumppublic void markCommentDeletedAndIncrementVersion(long commentId)
EntityVersioningManagermarkCommentDeletedAndIncrementVersion in interface EntityVersioningManagercommentId - identifier for comment to mark as deleted & whose version number to bumppublic void markWorklogDeletedAndIncrementVersion(long worklogId)
EntityVersioningManagermarkWorklogDeletedAndIncrementVersion in interface EntityVersioningManagerworklogId - identifier for worklog to mark as deleted & whose version number to bumppublic Optional<Long> getIssueVersion(long issueId)
EntityVersioningManagerissueId or Optional.empty() if there is no version.getIssueVersion in interface EntityVersioningManagerissueId - identifies the issue whose current version will be retrievedpublic Optional<Long> getCommentVersion(long commentId)
EntityVersioningManagercommentId or Optional.empty() if there is no version.getCommentVersion in interface EntityVersioningManagercommentId - identifies the comment whose current version will be retrievedpublic Optional<Long> getWorklogVersion(long worklogId)
EntityVersioningManagerworklogId or Optional.empty() if there is no version.getWorklogVersion in interface EntityVersioningManagerworklogId - identifies the worklog whose current version will be retrievedpublic Map<Long,Long> getRelatedCommentVersions(long parentIssueId)
EntityVersioningManagerparentIssueId.getRelatedCommentVersions in interface EntityVersioningManagerparentIssueId - identifier for the Issue whose comments will be retrievedpublic Map<Long,Long> getRelatedWorklogVersions(long parentIssueId)
EntityVersioningManagerparentIssueId.getRelatedWorklogVersions in interface EntityVersioningManagerparentIssueId - identifier for the Issue whose worklogs will be retrievedpublic void markEntityDeletedAndIncrementVersion(long entityId,
AffectedIndex indexName)
EntityVersioningManagermarkEntityDeletedAndIncrementVersion in interface EntityVersioningManagerentityId - - id of entity to be processedindexName - - which index entity to be processed belongs topublic void cleanDeletedIssueVersion(long issueId)
EntityVersioningManagercleanDeletedIssueVersion in interface EntityVersioningManagerissueId - identifies the deleted issuepublic long cleanAllDeletedEntityVersionsOlderThan(java.time.Duration duration)
EntityVersioningManagerduration.cleanAllDeletedEntityVersionsOlderThan in interface EntityVersioningManagerduration - threshold for deletion; entries marked as deleted and older than this will be removed.public void incrementRelatedCommentVersions(long issueId)
EntityVersioningManagerparentIssueId. If there isn't a
version record associated with a given comment, it will be added.incrementRelatedCommentVersions in interface EntityVersioningManagerissueId - identifier for the Issue whose comments will be bumped.public void incrementRelatedWorklogVersions(long issueId)
EntityVersioningManagerparentIssueId. If there isn't a
version record associated with a given worklog, it will be added.incrementRelatedWorklogVersions in interface EntityVersioningManagerissueId - identifier for the Issue whose worklogs will be bumped.Copyright © 2002-2020 Atlassian. All Rights Reserved.