Class DeploymentStartedNotification
- java.lang.Object
-
- com.atlassian.bamboo.notification.AbstractNotification
-
- com.atlassian.bamboo.deployments.notification.DeploymentStartedNotification
-
- All Implemented Interfaces:
DeploymentResultAwareNotification
,Notification
,Notification.HtmlImContentProvidingNotification
public class DeploymentStartedNotification extends AbstractNotification implements DeploymentResultAwareNotification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.Notification
Notification.HtmlImContentProvidingNotification
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.notification.AbstractNotification
NAVIGATION_SOURCE
-
-
Constructor Summary
Constructors Constructor Description DeploymentStartedNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
getContext()
DeploymentResult
getDeploymentResult()
@NotNull String
getDescription()
Text describing this notification object - used for logging/debugging purposes.String
getEmailSubject()
Retrieves the subject for the notification.String
getHtmlEmailContent()
Generates the html for the html part of an email notification.String
getHtmlImContent()
String
getIMContent()
Retrieves the content for the IM notificationString
getTextEmailContent()
Generates the text email content for the notificationsvoid
setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
void
setDeploymentResult(DeploymentResult deploymentResult)
void
setDeploymentResultService(DeploymentResultService deploymentResultService)
void
setDeploymentVersionLinkedJiraIssuesService(DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService)
void
setDeploymentVersionService(DeploymentVersionService deploymentVersionService)
void
setDeploymentVersionVcsChangesetService(DeploymentVersionVcsChangesetService deploymentVersionVcsChangesetService)
void
setTemplateRenderer(TemplateRenderer templateRenderer)
void
setTriggerManager(TriggerManager triggerManager)
-
Methods inherited from class com.atlassian.bamboo.notification.AbstractNotification
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
-
-
-
-
Method Detail
-
getDescription
@NotNull public @NotNull String getDescription()
Description copied from interface:Notification
Text describing this notification object - used for logging/debugging purposes.- Specified by:
getDescription
in interfaceNotification
- Returns:
- Notification's description
-
getTextEmailContent
public String getTextEmailContent() throws Exception
Description copied from interface:Notification
Generates the text email content for the notifications- Specified by:
getTextEmailContent
in interfaceNotification
- Returns:
- Email content formatted as text for this notification
- Throws:
Exception
- if there is a problem preventing production of the e-mail content.
-
getHtmlEmailContent
public String getHtmlEmailContent() throws Exception
Description copied from interface:Notification
Generates the html for the html part of an email notification.- Specified by:
getHtmlEmailContent
in interfaceNotification
- Returns:
- Email content formatted as HTML for this notification
- Throws:
Exception
- if there is a problem preventing production of the e-mail content.
-
getEmailSubject
public String getEmailSubject() throws Exception
Description copied from interface:Notification
Retrieves the subject for the notification.- Specified by:
getEmailSubject
in interfaceNotification
- Returns:
- Email subject for this notification
- Throws:
Exception
- if there is a problem preventing production of the e-mail subject.
-
getIMContent
public String getIMContent()
Description copied from interface:Notification
Retrieves the content for the IM notification- Specified by:
getIMContent
in interfaceNotification
- Returns:
- IM message content for this notification
-
getHtmlImContent
public String getHtmlImContent()
- Specified by:
getHtmlImContent
in interfaceNotification.HtmlImContentProvidingNotification
- Overrides:
getHtmlImContent
in classAbstractNotification
-
getDeploymentResult
public DeploymentResult getDeploymentResult()
- Specified by:
getDeploymentResult
in interfaceDeploymentResultAwareNotification
-
setDeploymentResult
public void setDeploymentResult(DeploymentResult deploymentResult)
-
setTemplateRenderer
public void setTemplateRenderer(TemplateRenderer templateRenderer)
-
setTriggerManager
public void setTriggerManager(TriggerManager triggerManager)
-
setDeploymentProjectService
public void setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
-
setDeploymentResultService
public void setDeploymentResultService(DeploymentResultService deploymentResultService)
-
setDeploymentVersionVcsChangesetService
public void setDeploymentVersionVcsChangesetService(DeploymentVersionVcsChangesetService deploymentVersionVcsChangesetService)
-
setDeploymentVersionLinkedJiraIssuesService
public void setDeploymentVersionLinkedJiraIssuesService(DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService)
-
setDeploymentVersionService
public void setDeploymentVersionService(DeploymentVersionService deploymentVersionService)
-
-