@ProviderType
public interface SystemNotifications
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage(String message,
String onTime,
String offTime)
Gets the notification message injecting the onTime into {{ onTime }} and offTime into {{ offTime }}.
|
String |
getNotificationId(com.day.cq.wcm.api.Page notificationPage)
Gets the UID identifying this page; UID is based on path and last modified date so will change with modifications and resource moves.
|
List<org.apache.sling.api.resource.Resource> |
getNotifications(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.resource.Resource notifications)
Gets the activate notifications.
|
List<org.apache.sling.api.resource.Resource> getNotifications(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.resource.Resource notifications)
request - The request objectnotifications - the notifications folder resource containing the notification pagesString getNotificationId(com.day.cq.wcm.api.Page notificationPage)
notificationPage - the notification PageString getMessage(String message, String onTime, String offTime)
message - the raw message; may include HTML but CRLF are converted to onTime - the string to be injected into {{ onTime }}offTime - the string to be injected into {{ offTime }}Copyright © 2013–2020 Adobe. All rights reserved.