public class

BackgroundIndexListener

extends AbstractIssueEventListener
java.lang.Object
   ↳ com.atlassian.jira.event.issue.AbstractIssueEventListener
     ↳ com.atlassian.jira.issue.index.BackgroundIndexListener

Class Overview

This Class listens for Issue updates and deletes that happen during a background reindex so that they can be re-validated to ensure the index is not corrupted by any race between the background reindex and the issue updater.

We don't need to worry about new created issues as we can't generate a race against an issue that didn't have a previous state.

Summary

Public Constructors
BackgroundIndexListener()
Public Methods
Set<Long> getDeletedIssues()
int getTotalModifications()
Set<Long> getUpdatedIssues()
void issueAssigned(IssueEvent event)
Fired when an issue is assigned or unassigned.
void issueClosed(IssueEvent event)
Fired when an issue is closed.
void issueCommentDeleted(IssueEvent event)
The default behaviour for this method calls issueUpdated(IssueEvent).
void issueCommentEdited(IssueEvent event)
void issueCommented(IssueEvent event)
Fired when a user comments on an issue.
void issueDeleted(IssueEvent event)
Fired when an issue is deleted.
void issueMoved(IssueEvent event)
Fired when an issue is moved.
void issueReopened(IssueEvent event)
Fired when an issue is reopened.
void issueResolved(IssueEvent event)
Fired when an issue is resolved.
void issueUpdated(IssueEvent event)
Fired when an issue is updated.
void issueWorkLogged(IssueEvent event)
Fired when work is logged against an issue.
void issueWorklogDeleted(IssueEvent event)
void issueWorklogUpdated(IssueEvent event)
[Expand]
Inherited Methods
From class com.atlassian.jira.event.issue.AbstractIssueEventListener
From class java.lang.Object
From interface com.atlassian.jira.event.JiraListener
From interface com.atlassian.jira.event.issue.IssueEventListener

Public Constructors

public BackgroundIndexListener ()

Public Methods

public Set<Long> getDeletedIssues ()

public int getTotalModifications ()

public Set<Long> getUpdatedIssues ()

public void issueAssigned (IssueEvent event)

Fired when an issue is assigned or unassigned.

Check the issue assignee to work out which is the case.

public void issueClosed (IssueEvent event)

Fired when an issue is closed.

The closure comment (if there is one) will be attached to the event as an action.

public void issueCommentDeleted (IssueEvent event)

The default behaviour for this method calls issueUpdated(IssueEvent). This preserves the behaviour of JIRA prior to v5.2

public void issueCommentEdited (IssueEvent event)

public void issueCommented (IssueEvent event)

Fired when a user comments on an issue.

The comment will be attached to the event as an action.

public void issueDeleted (IssueEvent event)

Fired when an issue is deleted.

public void issueMoved (IssueEvent event)

Fired when an issue is moved.

public void issueReopened (IssueEvent event)

Fired when an issue is reopened.

public void issueResolved (IssueEvent event)

Fired when an issue is resolved.

The resolution comment (if there is one) will be attached to the event as an action.

public void issueUpdated (IssueEvent event)

Fired when an issue is updated.

The update changelog will be attached to the event as an action.

public void issueWorkLogged (IssueEvent event)

Fired when work is logged against an issue.

The work log will be attached to the event as an action.

public void issueWorklogDeleted (IssueEvent event)

public void issueWorklogUpdated (IssueEvent event)