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
Constructors Constructor Description AnyNotificationRecipient(@NotNull AtlassianModule atlassianPlugin)Specifies a notification recipient of a given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull AnyNotificationRecipientPropertiesbuild()AnyNotificationRecipientrecipientString(java.lang.String recipientString)Sets configuration string for this recipient.
-
-
-
Constructor Detail
-
AnyNotificationRecipient
public AnyNotificationRecipient(@NotNull @NotNull AtlassianModule atlassianPlugin) throws PropertiesValidationExceptionSpecifies a notification recipient of a given type.- Parameters:
atlassianPlugin- type of the notification condition identified by its plugin module key- Throws:
PropertiesValidationException- See Also:
AtlassianModule
-
-
Method Detail
-
recipientString
public AnyNotificationRecipient recipientString(java.lang.String 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
@NotNull protected @NotNull AnyNotificationRecipientProperties build()
- Specified by:
buildin classNotificationRecipient<AnyNotificationRecipient,AnyNotificationRecipientProperties>
-
-