|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.event.issue.AbstractIssueEventListener
com.atlassian.jira.event.listeners.mail.MailListener
public class MailListener
A listener for emailing notifications.
At the moment when this listener is activated it will email the reporter, assignee and any watchers.
The content of the emails is governed by Velocity templates (in /templates) and the emails are sent out by the MailSender.
Parameters: email.from - who the emails should be sent from email.server - the SMTP server to send email through email.session - the JNDI location of a MailSession to use when sending email subject.prefix - (optional) any prefix for the subject, like "[FooBar]" -> Subject: [FooBar] BazBat
DebugMailListener
Constructor Summary | |
---|---|
MailListener(NotificationSchemeManager notificationSchemeManager,
IssueMailQueueItemFactory issueMailQueueItemFactory,
UserManager userManager)
|
Method Summary | |
---|---|
protected void |
addMailItems(List<SchemeEntity> schemeEntities,
IssueEvent event)
Add mail items to the mail queue for the event and the associated notification types as defined in the notification scheme. |
void |
customEvent(IssueEvent event)
Implement this method to deal with any custom events within the system |
String[] |
getAcceptedParams()
Get a list of the parameters for this listener. |
String |
getDescription()
A textual description of the listener. |
void |
init(Map params)
Initialise the listener. |
boolean |
isInternal()
Indicates whether administrators can delete this listener from within the web interface. |
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 |
issueCommentEdited(IssueEvent event)
|
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 |
issueStarted(IssueEvent event)
Fired when user starts work on an issue (start progress) |
void |
issueStopped(IssueEvent event)
Fired when user stops work on an issue (stop progress) |
void |
issueUpdated(IssueEvent event)
Fired when an issue is updated. |
void |
issueWorklogDeleted(IssueEvent event)
|
void |
issueWorkLogged(IssueEvent event)
Fired when work is logged against an issue. |
void |
issueWorklogUpdated(IssueEvent event)
|
boolean |
isUnique()
Mail Listeners are unique. |
protected void |
sendNotification(IssueEvent event)
Retrieve the assocaited notification scheme and create the mail items for notification of the specified event. |
protected void |
sendUserMail(UserEvent event,
String subject,
String subjectKey,
String template)
|
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 |
Methods inherited from class com.atlassian.jira.event.issue.AbstractIssueEventListener |
---|
getI18NBean, workflowEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.event.issue.IssueEventListener |
---|
workflowEvent |
Constructor Detail |
---|
public MailListener(NotificationSchemeManager notificationSchemeManager, IssueMailQueueItemFactory issueMailQueueItemFactory, UserManager userManager)
Method Detail |
---|
public void init(Map params)
JiraListener
init
in interface JiraListener
init
in class AbstractIssueEventListener
params
- initialisation parameterspublic String[] getAcceptedParams()
JiraListener
getAcceptedParams
in interface JiraListener
getAcceptedParams
in class AbstractIssueEventListener
protected void sendNotification(IssueEvent event)
event
- the IssueEvent triggering the notificationprotected void addMailItems(List<SchemeEntity> schemeEntities, IssueEvent event) throws org.ofbiz.core.entity.GenericEntityException
Only the first email encountered for a user will be sent in the case where a user is included in multiple notification types.
schemeEntities
- used to determine the recipients of the notification of the specified eventevent
- the cause of the notification
org.ofbiz.core.entity.GenericEntityException
- thrown if we can't retrieve the SchemeEntities or NotificationRecipientspublic void issueCreated(IssueEvent event)
IssueEventListener
issueCreated
in interface IssueEventListener
issueCreated
in class AbstractIssueEventListener
public void issueAssigned(IssueEvent event)
IssueEventListener
issueAssigned
in interface IssueEventListener
issueAssigned
in class AbstractIssueEventListener
public void issueClosed(IssueEvent event)
IssueEventListener
issueClosed
in interface IssueEventListener
issueClosed
in class AbstractIssueEventListener
public void issueResolved(IssueEvent event)
IssueEventListener
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
issueUpdated
in interface IssueEventListener
issueUpdated
in class AbstractIssueEventListener
public void issueCommented(IssueEvent event)
IssueEventListener
issueCommented
in interface IssueEventListener
issueCommented
in class AbstractIssueEventListener
public void issueCommentEdited(IssueEvent event)
issueCommentEdited
in class AbstractIssueEventListener
public void issueWorkLogged(IssueEvent event)
IssueEventListener
issueWorkLogged
in interface IssueEventListener
issueWorkLogged
in class AbstractIssueEventListener
public void issueWorklogUpdated(IssueEvent event)
issueWorklogUpdated
in class AbstractIssueEventListener
public void issueWorklogDeleted(IssueEvent event)
issueWorklogDeleted
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 issueStarted(IssueEvent event)
IssueEventListener
issueStarted
in interface IssueEventListener
issueStarted
in class AbstractIssueEventListener
public void issueStopped(IssueEvent event)
IssueEventListener
issueStopped
in interface IssueEventListener
issueStopped
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
- IssueEventprotected void sendUserMail(UserEvent event, String subject, String subjectKey, String template)
public 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
public boolean isUnique()
isUnique
in interface JiraListener
isUnique
in class AbstractIssueEventListener
public String getDescription()
JiraListener
getDescription
in interface JiraListener
getDescription
in class AbstractIssueEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |