Interface UserNotificationOperationBuilder.Alert
- All Superinterfaces:
UserNotificationOperationBuilder.WithDimensions<UserNotificationOperationBuilder.Alert>
,UserNotificationOperationBuilder.WithDuration<UserNotificationOperationBuilder.Alert>
- Enclosing interface:
UserNotificationOperationBuilder
public static interface UserNotificationOperationBuilder.Alert
extends UserNotificationOperationBuilder.WithDuration<UserNotificationOperationBuilder.Alert>, UserNotificationOperationBuilder.WithDimensions<UserNotificationOperationBuilder.Alert>
This interface represents a specific builder to display a
alert popup notification to a user.
- Since:
- 12.13
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
This interface represents a specific builder to display a alert popup notification with a html message to a user.static interface
This interface represents a specific builder to display a alert popup notification with a plain text message to a user.static interface
This interface represents a specific builder to display a alert popup notification with a message to a user. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a UserNotificationOperationBuilder.Alert.Html instance which is able to display a html alert popup notification to the user.This method returns a UserNotificationOperationBuilder.Alert.Text instance which is able to display a text alert popup notification to the user.Methods inherited from interface com.novomind.ecom.api.iagent.operation.notification.UserNotificationOperationBuilder.WithDimensions
dimensions
Methods inherited from interface com.novomind.ecom.api.iagent.operation.notification.UserNotificationOperationBuilder.WithDuration
duration
-
Method Details
-
text
This method returns a UserNotificationOperationBuilder.Alert.Text instance which is able to display a text alert popup notification to the user.- Parameters:
text
- the text message of the alert popup notification- Returns:
- the UserNotificationOperationBuilder.Alert.Text
- Throws:
ValidationException
- if the text message is not valid- Since:
- 12.13
-
html
This method returns a UserNotificationOperationBuilder.Alert.Html instance which is able to display a html alert popup notification to the user. The parameter should only contain simple html elements like div, span, a, b. Not allowed are elements like iframe, embed, script, etc. Any type of script or event handler is also not allowed.- Parameters:
html
- the html message of the alert popup notification- Returns:
- the UserNotificationOperationBuilder.Alert.Html
- Throws:
ValidationException
- if the html message is not valid- Since:
- 12.13
-