Class AnyNotificationRecipient
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.notification.NotificationRecipient<AnyNotificationRecipient,AnyNotificationRecipientProperties>
com.atlassian.bamboo.specs.api.builders.notification.AnyNotificationRecipient
public class AnyNotificationRecipient
extends NotificationRecipient<AnyNotificationRecipient,AnyNotificationRecipientProperties>
Represents any type of notification recipient.
Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation is not available.
-
Constructor Summary
ConstructorDescriptionAnyNotificationRecipient
(@NotNull AtlassianModule atlassianPlugin) Specifies a notification recipient of a given type. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull AnyNotificationRecipientProperties
build()
recipientString
(String recipientString) Sets configuration string for this recipient.
-
Constructor Details
-
AnyNotificationRecipient
public AnyNotificationRecipient(@NotNull @NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationException Specifies a notification recipient of a given type.- Parameters:
atlassianPlugin
- type of the notification condition identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
-
-
Method Details
-
recipientString
Sets configuration string for this recipient.The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
-
build
- Specified by:
build
in classNotificationRecipient<AnyNotificationRecipient,
AnyNotificationRecipientProperties>
-