Package org.apache.tapestry5.alerts
Interface AlertManager
- 
- All Known Implementing Classes:
- AlertManagerImpl
 
 public interface AlertManager ManagesAlerts (using theAlertStorageSSO. The behavior of the service switches during an Ajax request to directly add JavaScript to present the alerts.- Since:
- 5.3
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalert(Duration duration, Severity severity, String message)Adds an alert with configurable severity and duration.voidalert(Duration duration, Severity severity, String message, boolean markup)Adds an alert with configurable severity and duration.voiderror(String message)Adds anSeverity.ERRORalert with the default duration,Duration.SINGLE.voidinfo(String message)Adds anSeverity.INFOalert with the default duration,Duration.SINGLE.voidsuccess(String message)Adds anSeverity.SUCCESSalert with the default duration,Duration.SINGLE.voidwarn(String message)Adds anSeverity.WARNalert with the default duration,Duration.SINGLE.
 
- 
- 
- 
Method Detail- 
successvoid success(String message) Adds anSeverity.SUCCESSalert with the default duration,Duration.SINGLE.- Parameters:
- message- to present to the user
- Since:
- 5.3.6
 
 - 
infovoid info(String message) Adds anSeverity.INFOalert with the default duration,Duration.SINGLE.- Parameters:
- message- to present to the user
 
 - 
warnvoid warn(String message) Adds anSeverity.WARNalert with the default duration,Duration.SINGLE.- Parameters:
- message- to present to the user
 
 - 
errorvoid error(String message) Adds anSeverity.ERRORalert with the default duration,Duration.SINGLE.- Parameters:
- message- to present to the user
 
 - 
alertvoid alert(Duration duration, Severity severity, String message) Adds an alert with configurable severity and duration. Message isn't treated as HTML, being HTML-escaped.- Parameters:
- duration- controls how long the alert is presented to the user
- severity- controls how the alert is presented to the user
- message- to present to the user
 
 - 
alert@IncompatibleChange(details="Added in 5.4 in order to support HTML in alerts", release="5.4") void alert(Duration duration, Severity severity, String message, boolean markup) Adds an alert with configurable severity and duration.- Parameters:
- duration- controls how long the alert is presented to the user
- severity- controls how the alert is presented to the user
- message- to present to the user
- markup- whether to treat the message as raw HTML (true) or escape it (false).
 
 
- 
 
-