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 Classes Modifier and Type Interface Description static interface
UserNotificationOperationBuilder.Alert.Html
This interface represents a specific builder to display a alert popup notification with a html message to a user.static interface
UserNotificationOperationBuilder.Alert.Text
This interface represents a specific builder to display a alert popup notification with a plain text message to a user.static interface
UserNotificationOperationBuilder.Alert.WithMessage<T>
This interface represents a specific builder to display a alert popup notification with a message to a user.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserNotificationOperationBuilder.Alert.Html
html(java.lang.String html)
This method returns a UserNotificationOperationBuilder.Alert.Html instance which is able to display a html alert popup notification to the user.UserNotificationOperationBuilder.Alert.Text
text(java.lang.String text)
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 Detail
-
text
UserNotificationOperationBuilder.Alert.Text text(java.lang.String text) throws ValidationException
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
UserNotificationOperationBuilder.Alert.Html html(java.lang.String html) throws ValidationException
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
-
-