Interface MobileNumberConfirmationManager
public interface MobileNumberConfirmationManager
Confirmation manager for mobile number
- Author:
- P. Piernik
-
Method Summary
Modifier and TypeMethodDescriptionOptional<pl.edu.icm.unity.base.confirmation.MobileNumberConfirmationConfiguration>
getConfirmationConfigurationForAttribute
(String attributeName) sendConfirmationRequest
(pl.edu.icm.unity.base.confirmation.MobileNumberConfirmationConfiguration configEntry, String mobileToConfirm, pl.edu.icm.unity.base.confirmation.ConfirmationInfo relatedConfirmationInfo) Send confirmation request to the user.Message template id is taken from given mobile number confirmation configuration.
-
Method Details
-
sendConfirmationRequest
SMSCode sendConfirmationRequest(pl.edu.icm.unity.base.confirmation.MobileNumberConfirmationConfiguration configEntry, String mobileToConfirm, pl.edu.icm.unity.base.confirmation.ConfirmationInfo relatedConfirmationInfo) throws pl.edu.icm.unity.base.exceptions.EngineException Send confirmation request to the user.Message template id is taken from given mobile number confirmation configuration. The template is filled by manager with confirmation code and the whole message is sent via configured notification channel. Also relevant confirmationInfo is update.- Parameters:
configEntry
-mobileToConfirm
-relatedConfirmationInfo
-- Returns:
- sms code
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getConfirmationConfigurationForAttribute
Optional<pl.edu.icm.unity.base.confirmation.MobileNumberConfirmationConfiguration> getConfirmationConfigurationForAttribute(String attributeName) - Returns:
- attribute confirmation configuration
-