public interface INotificationRecipientBuilder
A builder instance can only produce one recipient instance safely. So, to produce multiple recipient instance you need to retrieve multiple builder instances.
| Modifier and Type | Method and Description |
|---|---|
INotificationRecipient |
build()
Produces a notification recipient with the information previously fed using "with..." methods
|
INotificationRecipientBuilder |
withEmail(String email)
Feeds the e-mail and returns the builder
|
INotificationRecipientBuilder |
withExternalID(String externalID)
Feeds the externalID and returns the builder
|
INotificationRecipientBuilder |
withFirstName(String firstName)
Feeds the firstName and returns the builder
|
INotificationRecipientBuilder |
withFullName(String fullName)
Feeds the fullName and returns the builder
|
INotificationRecipientBuilder |
withIUser(IUser iUser)
Feeds every data that can be found in the IUser and returns the builder
|
INotificationRecipientBuilder |
withIUserProtocolURI(String iUserProtocolURI)
Feeds the IUser's protocolURI and returns the builder
|
INotificationRecipientBuilder |
withLanguageCode(String languageCode)
Feeds the languageCode and returns the builder
|
INotificationRecipientBuilder |
withLastName(String lastName)
Feeds the lastName and returns the builder
|
INotificationRecipientBuilder |
withLogin(String login)
Feeds the login and returns the builder
|
INotificationRecipientBuilder |
withMobilePhoneNumber(String mobilePhoneNumber)
Feeds the mobile phone number and returns the builder
|
INotificationRecipientBuilder |
withPhoneNumber(String phoneNumber)
Feeds the phone number and returns the builder
|
INotificationRecipientBuilder |
withSex(String sex)
Feeds the sex and returns the builder
|
INotificationRecipientBuilder |
withTitle(String title)
Feeds the title and returns the builder
|
INotificationRecipientBuilder withFirstName(String firstName)
firstName - the firstName to feedIllegalArgumentException - - if firstName is null or blankINotificationRecipientBuilder withLastName(String lastName)
lastName - the lastName to feedIllegalArgumentException - - if lastName is null or blankINotificationRecipientBuilder withFullName(String fullName)
fullName - the fullName to feedIllegalArgumentException - - if fullName is null or blankINotificationRecipientBuilder withTitle(String title)
title - the title to feedIllegalArgumentException - - if title is null or blankINotificationRecipientBuilder withSex(String sex)
sex - the sex to feedIllegalArgumentException - - if sex is null or blankINotificationRecipientBuilder withIUserProtocolURI(String iUserProtocolURI)
iUserProtocolURI - the IUser's protocolURI to feedIllegalArgumentException - - if iUserProtocolURI is null or blankINotificationRecipientBuilder withLogin(String login)
login - the login to feedIllegalArgumentException - - if login is null or blankINotificationRecipientBuilder withExternalID(String externalID)
externalID - the externalID to feedIllegalArgumentException - - if externalID is null or blankINotificationRecipientBuilder withLanguageCode(String languageCode)
languageCode - the languageCode to feedIllegalArgumentException - - if languageCode is null or blankINotificationRecipientBuilder withEmail(String email)
email - the e-mail to feedIllegalArgumentException - - if email is null, blank or invalidINotificationRecipientBuilder withPhoneNumber(String phoneNumber)
phoneNumber - the phone number to feedIllegalArgumentException - - if phoneNumber is null or blankINotificationRecipientBuilder withMobilePhoneNumber(String mobilePhoneNumber)
mobilePhoneNumber - the mobile phone number to feedIllegalArgumentException - - if mobilePhoneNumber is null or blankINotificationRecipientBuilder withIUser(IUser iUser)
iUser - the IUser to use to feed dataNullPointerException - - if iUser is nullINotificationRecipient build() throws NotificationRecipientException
NotificationRecipientException - - If builder hasn't enough data to produce a notification recipient (use with methods before)Copyright © 2021 Visiativ Software. All rights reserved.