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