public class Addresses extends AbstractImpl
Modifier and Type | Class and Description |
---|---|
static class |
Addresses.EMailType
EMail types.
|
Modifier and Type | Field and Description |
---|---|
static String[] |
ADDRESS_TYPES |
static Map<Short,Integer> |
PHONE_COUNTRIES |
static Map<Short,String> |
POSTAL_COUNTRIES_BY_CODE |
static String |
UNASSIGNED_ADDRESS |
static Short |
USAGE_BUSINESS |
static Short |
USAGE_BUSINESS_FAX |
static Short |
USAGE_BUSINESS_MAIN_PHONE
Deprecated.
|
static Short |
USAGE_BUSINESS_MOBILE
Deprecated.
|
static Short |
USAGE_CONTRACT_DELIVERY |
static Short |
USAGE_CONTRACT_INVOICE |
static Short |
USAGE_HOME |
static Short |
USAGE_HOME_FAX |
static Short |
USAGE_HOME_MAIN_PHONE
Deprecated.
|
static Short |
USAGE_HOME_MOBILE
Deprecated.
|
static Short |
USAGE_MOBILE |
static Short |
USAGE_OTHER |
Modifier | Constructor and Description |
---|---|
protected |
Addresses() |
Modifier and Type | Method and Description |
---|---|
static Addresses |
getInstance() |
int |
mapToPhoneCountryCode(int prefix) |
Integer |
mapToPhoneCountryPrefix(int countryCode) |
short |
mapToPostalCountryCode(String country,
Segment codeSegment) |
String[] |
mapToPostalCountryText(short countryCode,
Segment codeSegment)
Get short and long text for postal country code in locale = 0 (en_US)
|
String[] |
mapToPostalCountryText(short countryCode,
short locale,
Segment codeSegment)
Get short and long text for postal country code.
|
static void |
register() |
void |
updatePhoneNumber(PhoneNumberAddressable phoneNumber)
Update derived phone number fields in case automaticParsing=true.
|
getInstance, getUidAsString, preDelete, preStore, registerImpl
public static final String[] ADDRESS_TYPES
public static final Short USAGE_BUSINESS_MOBILE
public static final Short USAGE_HOME_MOBILE
public static final Short USAGE_MOBILE
public static final Short USAGE_BUSINESS_FAX
public static final Short USAGE_HOME_FAX
public static final Short USAGE_BUSINESS_MAIN_PHONE
public static final Short USAGE_HOME_MAIN_PHONE
public static final Short USAGE_OTHER
public static final Short USAGE_BUSINESS
public static final Short USAGE_HOME
public static final Short USAGE_CONTRACT_INVOICE
public static final Short USAGE_CONTRACT_DELIVERY
public static final String UNASSIGNED_ADDRESS
public static void register()
public static Addresses getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public String[] mapToPostalCountryText(short countryCode, Segment codeSegment) throws org.openmdx.base.exception.ServiceException
countryCode
- codeSegment
- org.openmdx.base.exception.ServiceException
public String[] mapToPostalCountryText(short countryCode, short locale, Segment codeSegment) throws org.openmdx.base.exception.ServiceException
countryCode
- locale
- codeSegment
- org.openmdx.base.exception.ServiceException
public short mapToPostalCountryCode(String country, Segment codeSegment) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public Integer mapToPhoneCountryPrefix(int countryCode) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public int mapToPhoneCountryCode(int prefix) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void updatePhoneNumber(PhoneNumberAddressable phoneNumber) throws org.openmdx.base.exception.ServiceException
phoneNumber
- org.openmdx.base.exception.ServiceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.