Interface NotificationSender
-
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
DefaultNotificationSender
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface NotificationSender extends org.springframework.core.OrderedThis isNotificationSender.- Since:
- 6.3.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancanSend()Whether it can send a notification.default intgetOrder()static NotificationSendernoOp()No op notification sender.booleannotify(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.lang.String> messageData)Notify.
-
-
-
Method Detail
-
getOrder
default int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
canSend
default boolean canSend()
Whether it can send a notification.- Returns:
- whether it can send an notification
-
notify
boolean notify(org.apereo.cas.authentication.principal.Principal principal, java.util.Map<java.lang.String,java.lang.String> messageData)Notify.- Parameters:
principal- the principalmessageData- the message data- Returns:
- true/false
-
noOp
static NotificationSender noOp()
No op notification sender.- Returns:
- the notification sender
-
-