public interface PhoneService extends CRUDWithConfirmationPasswordService<PhoneDTO,PhoneData,PhoneDataParams>
| Modifier and Type | Method and Description |
|---|---|
void |
disableForSms(java.lang.Long id,
java.lang.String confirmationPassword)
Disables the given mobile phone to operate via SMS
|
void |
enableForSms(java.lang.Long id)
Enables the given mobile phone to operate via SMS
|
PasswordInputDTO |
getConfirmationPasswordInputForDisableSms(java.lang.Long id)
Returns data for the confirmation password needed to disable a phone by sms
|
PhoneListData |
getPhoneListData(UserLocatorVO locator)
Returns data containing all phones belonging to the given user
|
PhoneVO |
loadByNumber(java.lang.String number)
Returns a mobile phone by number, making sure it is visible
|
java.lang.String |
sendVerificationCode(java.lang.Long id)
Sends a verification code to a mobile phone via SMS.
|
CodeVerificationStatus |
verify(java.lang.Long id,
java.lang.String verificationCode)
Verifies a mobile phone with a code received via SMS.
|
getConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPasswordgetData, getDataForNew, load, remove, removeAll, savevoid disableForSms(java.lang.Long id,
java.lang.String confirmationPassword)
throws FrameworkException
FrameworkExceptionvoid enableForSms(java.lang.Long id)
throws FrameworkException
FrameworkExceptionPasswordInputDTO getConfirmationPasswordInputForDisableSms(java.lang.Long id) throws FrameworkException
FrameworkExceptionPhoneListData getPhoneListData(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionPhoneVO loadByNumber(java.lang.String number) throws FrameworkException
FrameworkExceptionjava.lang.String sendVerificationCode(java.lang.Long id)
throws FrameworkException,
SmsSendingException
SmsSendingException - If the SMS message couldn't be sendIllegalActionException - If the mobile phone is already verifiedFrameworkExceptionCodeVerificationStatus verify(java.lang.Long id, java.lang.String verificationCode) throws FrameworkException
FrameworkException