public interface PhoneService extends CRUDService<PhoneDTO,PhoneData,PhoneDataParams>
| Modifier and Type | Method and Description |
|---|---|
PhoneListData |
getPhoneListData(UserLocatorVO locator)
Returns data containing all phones belonging to the given user
|
void |
markAsEnabledForSms(java.lang.Long id,
boolean enabled)
Enables / disables the given mobile phone to operate via SMS
|
void |
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.
|
getData, getDataForNew, load, remove, removeAll, savePhoneListData getPhoneListData(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionvoid markAsEnabledForSms(java.lang.Long id,
boolean enabled)
throws FrameworkException
FrameworkExceptionvoid 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