public interface PhoneServiceLocal extends PhoneService, org.cyclos.impl.CRUDServiceLocal<Phone,PhoneDTO,PhoneData,PhoneDataParams>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManagePhones(User user)
Returns if the logged user can manage the user phones
|
boolean |
canSetPrivate(User user)
Returns true if the logged user can change the private setting of the given users' phones
|
Phone |
getDefaultPhone(PhoneNature type,
User user)
Returns the default phone (landline or mobile) for the given user, or null if none found
|
org.cyclos.impl.utils.validation.Validator |
getValidator(PhoneDTO dto,
Group group)
Returns the validator for the given phone and user group
|
boolean |
isVerificationCodeSentAndNotExpired(MobilePhone mobile)
Returns whether there is a valid verification code sent for the given mobile phone
|
java.util.List<Phone> |
listByUser(User user)
Returns the visible phones of the given user.
|
Phone |
loadByRawNumber(User user,
java.lang.String rawNumber)
Loads a given user's number by its raw number
|
java.lang.String |
normalizeNumber(ConfigurationAccessor configuration,
java.lang.String rawNumber)
Normalizes a phone number for the given configuration
|
void |
verifyAndEnableForSms(MobilePhone phone)
Marks the given phone as verified and enabled for SMS
|
getPhoneListData, markAsEnabledForSms, sendVerificationCode, verifyfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean canManagePhones(User user)
boolean canSetPrivate(User user)
Phone getDefaultPhone(PhoneNature type, User user) throws FrameworkException
FrameworkExceptionorg.cyclos.impl.utils.validation.Validator getValidator(PhoneDTO dto, Group group)
boolean isVerificationCodeSentAndNotExpired(MobilePhone mobile)
java.util.List<Phone> listByUser(User user) throws FrameworkException
FrameworkExceptionPhone loadByRawNumber(User user, java.lang.String rawNumber)
java.lang.String normalizeNumber(ConfigurationAccessor configuration, java.lang.String rawNumber) throws FrameworkException
FrameworkExceptionvoid verifyAndEnableForSms(MobilePhone phone) throws FrameworkException
FrameworkException