Package org.apereo.cas.notifications
Class CommunicationsManager
- java.lang.Object
-
- org.apereo.cas.notifications.CommunicationsManager
-
public class CommunicationsManager extends java.lang.ObjectThis isCommunicationsManager.- Since:
- 5.1.0
-
-
Constructor Summary
Constructors Constructor Description CommunicationsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanemail(org.apereo.cas.authentication.principal.Principal principal, java.lang.String attribute, org.apereo.cas.configuration.model.support.email.EmailProperties emailProperties, java.lang.String body)Email.booleanemail(org.apereo.cas.configuration.model.support.email.EmailProperties emailProperties, java.lang.String to, java.lang.String body)Email.booleanisMailSenderDefined()booleanisNotificationSenderDefined()booleanisSmsSenderDefined()booleannotify(org.apereo.cas.authentication.principal.Principal principal, java.lang.String title, java.lang.String body)Notify.booleansms(java.lang.String from, java.lang.String to, java.lang.String text)Sms.booleansms(org.apereo.cas.authentication.principal.Principal principal, java.lang.String attribute, java.lang.String text, java.lang.String from)Sms.booleanvalidate()Validate.
-
-
-
Method Detail
-
isMailSenderDefined
public boolean isMailSenderDefined()
-
isSmsSenderDefined
public boolean isSmsSenderDefined()
-
isNotificationSenderDefined
public boolean isNotificationSenderDefined()
-
notify
public boolean notify(org.apereo.cas.authentication.principal.Principal principal, java.lang.String title, java.lang.String body)Notify.- Parameters:
principal- the principaltitle- the titlebody- the body- Returns:
- true/false
-
email
public boolean email(org.apereo.cas.authentication.principal.Principal principal, java.lang.String attribute, org.apereo.cas.configuration.model.support.email.EmailProperties emailProperties, java.lang.String body)Email.- Parameters:
principal- the principalattribute- the email attributeemailProperties- the email propertiesbody- the body- Returns:
- true /false
-
email
public boolean email(org.apereo.cas.configuration.model.support.email.EmailProperties emailProperties, java.lang.String to, java.lang.String body)Email.- Parameters:
emailProperties- the email propertiesto- the tobody- the body- Returns:
- true/false
-
sms
public boolean sms(org.apereo.cas.authentication.principal.Principal principal, java.lang.String attribute, java.lang.String text, java.lang.String from)Sms.- Parameters:
principal- the principalattribute- the attributetext- the textfrom- the from- Returns:
- true/false
-
sms
public boolean sms(java.lang.String from, java.lang.String to, java.lang.String text)Sms.- Parameters:
from- the fromto- the totext- the text- Returns:
- true/false
-
validate
public boolean validate()
Validate.- Returns:
- true, if email or sms providers, etc are defined for CAS.
-
-