public class DebugListener extends AbstractIssueEventListener implements UserEventListener
Useful for debuggin when certain events are fired, and the content of those events.
Constructor and Description |
---|
DebugListener() |
Modifier and Type | Method and Description |
---|---|
void |
customEvent(IssueEvent event)
Implement this method to deal with any custom events within the system
|
String[] |
getAcceptedParams()
Returns the parameters used by this listener.
|
String |
getDescription()
Returns a textual description of the listener.
|
void |
init(Map params)
Initialises the listener with the given parameters.
|
boolean |
isInternal()
Indicates whether this listener is internal, meaning it cannot be
removed by an administrator.
|
void |
issueAssigned(IssueEvent event)
Fired when an issue is assigned or unassigned.
|
void |
issueClosed(IssueEvent event)
Fired when an issue is closed.
|
void |
issueCommented(IssueEvent event)
Fired when a user comments on an issue.
|
void |
issueCreated(IssueEvent event)
Fired when an issue is created.
|
void |
issueDeleted(IssueEvent event)
Fired when an issue is deleted.
|
void |
issueGenericEvent(IssueEvent event)
Fired for all other events, eg.
|
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.
|
boolean |
isUnique()
Indicates whether JIRA should only create one instance of this listener.
|
void |
userCannotChangePassword(UserEvent event)
Fired when a user tries to change their password, and the password cannot be updated
|
void |
userCreated(UserEvent event)
Fired when a user is created automatically
|
void |
userForgotPassword(UserEvent event)
Fired when a user indicates they have forgotten their password
|
void |
userForgotUsername(UserEvent event)
Fired when a user indicates they have forgotten their username
|
void |
userSignup(UserEvent event)
Fired when a user signs up manually
|
getI18NBean, handleDefaultIssueEvent, issueCommentDeleted, issueCommentEdited, issueStarted, issueStopped, issueWorklogDeleted, issueWorklogUpdated, workflowEvent
public void init(Map params)
JiraListener
init
in interface JiraListener
init
in class AbstractIssueEventListener
params
- the initialisation parameters given in the Listener Propertiespublic String[] getAcceptedParams()
JiraListener
getAcceptedParams
in interface JiraListener
getAcceptedParams
in class AbstractIssueEventListener
public void issueAssigned(IssueEvent event)
IssueEventListener
Check the issue assignee to work out which is the case.
issueAssigned
in interface IssueEventListener
issueAssigned
in class AbstractIssueEventListener
public void issueClosed(IssueEvent event)
IssueEventListener
The closure comment (if there is one) will be attached to the event as an action.
issueClosed
in interface IssueEventListener
issueClosed
in class AbstractIssueEventListener
public void issueCreated(IssueEvent event)
IssueEventListener
issueCreated
in interface IssueEventListener
issueCreated
in class AbstractIssueEventListener
public void issueResolved(IssueEvent event)
IssueEventListener
The resolution comment (if there is one) will be attached to the event as an action.
issueResolved
in interface IssueEventListener
issueResolved
in class AbstractIssueEventListener
public void issueReopened(IssueEvent event)
IssueEventListener
issueReopened
in interface IssueEventListener
issueReopened
in class AbstractIssueEventListener
public void issueUpdated(IssueEvent event)
IssueEventListener
The update changelog will be attached to the event as an action.
issueUpdated
in interface IssueEventListener
issueUpdated
in class AbstractIssueEventListener
public void issueCommented(IssueEvent event)
IssueEventListener
The comment will be attached to the event as an action.
issueCommented
in interface IssueEventListener
issueCommented
in class AbstractIssueEventListener
public void issueDeleted(IssueEvent event)
IssueEventListener
issueDeleted
in interface IssueEventListener
issueDeleted
in class AbstractIssueEventListener
public void issueMoved(IssueEvent event)
IssueEventListener
issueMoved
in interface IssueEventListener
issueMoved
in class AbstractIssueEventListener
public void issueWorkLogged(IssueEvent event)
IssueEventListener
The work log will be attached to the event as an action.
issueWorkLogged
in interface IssueEventListener
issueWorkLogged
in class AbstractIssueEventListener
public void issueGenericEvent(IssueEvent event)
IssueEventListener
issueGenericEvent
in interface IssueEventListener
issueGenericEvent
in class AbstractIssueEventListener
public void customEvent(IssueEvent event)
AbstractIssueEventListener
customEvent
in interface IssueEventListener
customEvent
in class AbstractIssueEventListener
event
- IssueEventpublic void userSignup(UserEvent event)
UserEventListener
userSignup
in interface UserEventListener
event
- the event in playpublic void userCreated(UserEvent event)
UserEventListener
userCreated
in interface UserEventListener
event
- the event in playpublic void userForgotPassword(UserEvent event)
UserEventListener
userForgotPassword
in interface UserEventListener
event
- the event in playpublic void userForgotUsername(UserEvent event)
UserEventListener
userForgotUsername
in interface UserEventListener
event
- the event in playpublic void userCannotChangePassword(UserEvent event)
UserEventListener
userCannotChangePassword
in interface UserEventListener
event
- the event in playpublic boolean isInternal()
JiraListener
isInternal
in interface JiraListener
isInternal
in class AbstractIssueEventListener
true
if this is an Atlassian listener, otherwise public boolean isUnique()
JiraListener
isUnique
in interface JiraListener
isUnique
in class AbstractIssueEventListener
public String getDescription()
JiraListener
A good description will describe what this listener does and explain the parameters required for configuring it.
getDescription
in interface JiraListener
getDescription
in class AbstractIssueEventListener
Copyright © 2002-2024 Atlassian. All Rights Reserved.