@PUT @Path(PhoneNumber.FORMAT_DIN5008_NATIONAL_WITH_POS) public ValueWithPos<String> formatDin5008NationalWithPos( final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatDin5008NationalWithPos(pphoneNumber, pphoneNumber.getCountry()); }
@RequestMapping(value = PhoneNumber.FORMAT_DIN5008_NATIONAL_WITH_POS, method = RequestMethod.PUT) @ResponseStatus(HttpStatus.OK) @PermitAll @ResponseBody public ValueWithPos<String> formatDin5008NationalWithPos( @RequestBody final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatDin5008NationalWithPos(pphoneNumber, pphoneNumber.getCountry()); }
@RequestMapping(value = PhoneNumber.FORMAT_DIN5008_NATIONAL_WITH_POS, method = RequestMethod.PUT) @ResponseStatus(HttpStatus.OK) @PermitAll @ResponseBody public ValueWithPos<String> formatDin5008NationalWithPos( @RequestBody final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatDin5008NationalWithPos(pphoneNumber, pphoneNumber.getCountry()); }
/** * format phone number in DIN 5008 national format with cursor position handling. * * @param pphoneNumber phone number as String to format with cursor position * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008National(final ValueWithPos<String> pphoneNumber) { return valueWithPosDefaults( this.formatDin5008NationalWithPos(this.parsePhoneNumber(pphoneNumber)), pphoneNumber); }
/** * format phone number in DIN 5008 national format with cursor position handling. * * @param pphoneNumber phone number as String to format with cursor position * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008National(final ValueWithPos<String> pphoneNumber) { return valueWithPosDefaults( this.formatDin5008NationalWithPos(this.parsePhoneNumber(pphoneNumber)), pphoneNumber); }
/** * format phone number in DIN 5008 national format with cursor position handling. * * @param pphoneNumber phone number as String to format with cursor position * @param pcountryCode iso code of country * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008NationalWithPos( final ValueWithPos<String> pphoneNumber, final String pcountryCode) { return valueWithPosDefaults( this.formatDin5008NationalWithPos(this.parsePhoneNumber(pphoneNumber, pcountryCode)), pphoneNumber); }
/** * format phone number in DIN 5008 national format with cursor position handling. * * @param pphoneNumber phone number as String to format with cursor position * @param pcountryCode iso code of country * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008NationalWithPos( final ValueWithPos<String> pphoneNumber, final String pcountryCode) { return valueWithPosDefaults( this.formatDin5008NationalWithPos(this.parsePhoneNumber(pphoneNumber, pcountryCode)), pphoneNumber); }
/** * format phone number in DIN 5008 format with cursor position handling. * * @param pphoneNumberData phone number to format with cursor position * @param pcountryData country data * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008WithPos( final ValueWithPos<PhoneNumberData> pphoneNumberData, final PhoneCountryData pcountryData) { if (pphoneNumberData != null && pcountryData != null && StringUtils.equals(pcountryData.getCountryCodeData().getCountryCode(), pphoneNumberData.getValue().getCountryCode())) { return this.formatDin5008NationalWithPos(pphoneNumberData); } else { return this.formatDin5008InternationalWithPos(pphoneNumberData); } }
/** * format phone number in DIN 5008 format with cursor position handling. * * @param pphoneNumberData phone number to format with cursor position * @param pcountryData country data * @return formated phone number as String with new cursor position */ public final ValueWithPos<String> formatDin5008WithPos( final ValueWithPos<PhoneNumberData> pphoneNumberData, final PhoneCountryData pcountryData) { if (pphoneNumberData != null && pcountryData != null && StringUtils.equals(pcountryData.getCountryCodeData().getCountryCode(), pphoneNumberData.getValue().getCountryCode())) { return this.formatDin5008NationalWithPos(pphoneNumberData); } else { return this.formatDin5008InternationalWithPos(pphoneNumberData); } }