Class Sender
java.lang.Object
com.broadleafcommerce.notification.domain.Sender
- All Implemented Interfaces:
Serializable
A Sender represents who the notification is from.
- Author:
- Broadleaf Commerce
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The emailAddress that this message is from.The mobileNumber for this sender.getName()
The name of the sender.int
hashCode()
void
setEmailAddress
(String emailAddress) The emailAddress that this message is from.void
setMobileNumber
(String mobileNumber) The mobileNumber for this sender.void
The name of the sender.toString()
-
Constructor Details
-
Sender
-
Sender
public Sender()
-
-
Method Details
-
getFormattedEmailAddress
-
getEmailAddress
The emailAddress that this message is from. Required when sending some notification delivery types (e.g. EMAIL)- Returns:
- the emailAddress of the Sender
-
getMobileNumber
The mobileNumber for this sender. Required when sending some notification delivery types (e.g. SMS)- Returns:
- the mobileNumber of the Sender
-
getName
The name of the sender. Optional. Can be used to provide a name in addition to the emailAddress for most EMAIL providers.- Returns:
- the name of the Sender
-
setEmailAddress
The emailAddress that this message is from. Required when sending some notification delivery types (e.g. EMAIL)- Parameters:
emailAddress
-
-
setMobileNumber
The mobileNumber for this sender. Required when sending some notification delivery types (e.g. SMS)- Parameters:
mobileNumber
-
-
setName
The name of the sender. Optional. Can be used to provide a name in addition to the emailAddress for most EMAIL providers.- Parameters:
name
-
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-