@PUT @Path(PhoneNumber.FORMAT_URL_WITH_POS) public ValueWithPos<String> formatUrlWithPos(final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatUrlWithPos(pphoneNumber, pphoneNumber.getCountry()); }
@RequestMapping(value = PhoneNumber.FORMAT_URL_WITH_POS, method = RequestMethod.PUT) @ResponseStatus(HttpStatus.OK) @PermitAll @ResponseBody public ValueWithPos<String> formatUrlWithPos( @RequestBody final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatUrlWithPos(pphoneNumber, pphoneNumber.getCountry()); }
@RequestMapping(value = PhoneNumber.FORMAT_URL_WITH_POS, method = RequestMethod.PUT) @ResponseStatus(HttpStatus.OK) @PermitAll @ResponseBody public ValueWithPos<String> formatUrlWithPos( @RequestBody final ValueWithPosAndCountry<String> pphoneNumber) { return phoneNumberUtil.formatUrlWithPos(pphoneNumber, pphoneNumber.getCountry()); }
/** * format phone number in URL 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> formatUrlWithPos(final ValueWithPos<String> pphoneNumber, final String pcountryCode) { return valueWithPosDefaults( this.formatUrlWithPos(this.parsePhoneNumber(pphoneNumber, pcountryCode)), pphoneNumber); }
/** * format phone number in URL 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> formatUrl(final ValueWithPos<String> pphoneNumber) { return valueWithPosDefaults(this.formatUrlWithPos(this.parsePhoneNumber(pphoneNumber)), pphoneNumber); }
/** * format phone number in URL 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> formatUrlWithPos(final ValueWithPos<String> pphoneNumber, final String pcountryCode) { return valueWithPosDefaults( this.formatUrlWithPos(this.parsePhoneNumber(pphoneNumber, pcountryCode)), pphoneNumber); }
/** * format phone number in URL 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> formatUrl(final ValueWithPos<String> pphoneNumber) { return valueWithPosDefaults(this.formatUrlWithPos(this.parsePhoneNumber(pphoneNumber)), pphoneNumber); }
@Override public void formatValue(final ValueWithPos<String> pvalue, final boolean fireEvents) { setTextWithPos(phoneNumberUtil.formatUrlWithPos(pvalue, StringUtils.upperCase(Objects.toString(countryCodeField.getValue()))), fireEvents); }
@Override public void formatValue(final ValueWithPos<String> pvalue) { setTextWithPos(phoneNumberUtil.formatUrlWithPos(pvalue, StringUtils.upperCase(Objects.toString(countryCodeField.getValue())))); }