public class NotificationConfig extends Object implements hudson.model.Describable<NotificationConfig>
Modifier and Type | Class and Description |
---|---|
static class |
NotificationConfig.DescriptorImpl |
Constructor and Description |
---|
NotificationConfig(boolean notifyEnabled,
boolean textFormat,
NotificationType notificationType,
Notification.Color color,
String icon,
String messageTemplate) |
Modifier and Type | Method and Description |
---|---|
Notification.Color |
getColor() |
hudson.model.Descriptor<NotificationConfig> |
getDescriptor() |
String |
getIcon() |
Icon |
getIconObject() |
String |
getMessageTemplate() |
NotificationType |
getNotificationType() |
boolean |
isNotifyEnabled() |
boolean |
isTextFormat() |
NotificationConfig |
overrideMessageTemplate(String messageTemplate)
Returns a copy of the notification config that will contain the same settings, but the message template will be
overridden with the freshly provided one.
|
String |
toString() |
@DataBoundConstructor public NotificationConfig(boolean notifyEnabled, boolean textFormat, NotificationType notificationType, Notification.Color color, String icon, String messageTemplate)
public boolean isNotifyEnabled()
public NotificationType getNotificationType()
public boolean isTextFormat()
public Notification.Color getColor()
public String getIcon()
public Icon getIconObject()
public String getMessageTemplate()
public NotificationConfig overrideMessageTemplate(String messageTemplate)
messageTemplate
- The new message template to use.NotificationConfig
instance that has its message template updated.public hudson.model.Descriptor<NotificationConfig> getDescriptor()
getDescriptor
in interface hudson.model.Describable<NotificationConfig>
Copyright © 2016–2018. All rights reserved.