public class Addresses extends AbstractImpl
Modifier and Type | Class and Description |
---|---|
static class |
Addresses.EMailType
EMail types.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ADDRESS_TYPES |
static java.util.Map<java.lang.Short,java.lang.Integer> |
PHONE_COUNTRIES |
static java.util.Map<java.lang.Short,java.lang.String> |
POSTAL_COUNTRIES_BY_CODE |
static java.lang.String |
UNASSIGNED_ADDRESS |
static java.lang.Short |
USAGE_BUSINESS |
static java.lang.Short |
USAGE_BUSINESS_FAX |
static java.lang.Short |
USAGE_BUSINESS_MAIN_PHONE
Deprecated.
|
static java.lang.Short |
USAGE_BUSINESS_MOBILE
Deprecated.
|
static java.lang.Short |
USAGE_CONTRACT_DELIVERY |
static java.lang.Short |
USAGE_CONTRACT_INVOICE |
static java.lang.Short |
USAGE_HOME |
static java.lang.Short |
USAGE_HOME_FAX |
static java.lang.Short |
USAGE_HOME_MAIN_PHONE
Deprecated.
|
static java.lang.Short |
USAGE_HOME_MOBILE
Deprecated.
|
static java.lang.Short |
USAGE_MOBILE |
static java.lang.Short |
USAGE_OTHER |
Modifier | Constructor and Description |
---|---|
protected |
Addresses() |
Modifier and Type | Method and Description |
---|---|
static Addresses |
getInstance() |
int |
mapToPhoneCountryCode(int prefix) |
java.lang.Integer |
mapToPhoneCountryPrefix(int countryCode) |
short |
mapToPostalCountryCode(java.lang.String country,
Segment codeSegment) |
java.lang.String[] |
mapToPostalCountryText(short countryCode,
Segment codeSegment)
Get short and long text for postal country code in locale = 0 (en_US)
|
java.lang.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, getPersistenceManager, getUidAsString, preDelete, preStore, registerImpl
public static final java.lang.String[] ADDRESS_TYPES
public static final java.util.Map<java.lang.Short,java.lang.String> POSTAL_COUNTRIES_BY_CODE
public static final java.util.Map<java.lang.Short,java.lang.Integer> PHONE_COUNTRIES
public static final java.lang.Short USAGE_BUSINESS_MOBILE
public static final java.lang.Short USAGE_HOME_MOBILE
public static final java.lang.Short USAGE_MOBILE
public static final java.lang.Short USAGE_BUSINESS_FAX
public static final java.lang.Short USAGE_HOME_FAX
public static final java.lang.Short USAGE_BUSINESS_MAIN_PHONE
public static final java.lang.Short USAGE_HOME_MAIN_PHONE
public static final java.lang.Short USAGE_OTHER
public static final java.lang.Short USAGE_BUSINESS
public static final java.lang.Short USAGE_HOME
public static final java.lang.Short USAGE_CONTRACT_INVOICE
public static final java.lang.Short USAGE_CONTRACT_DELIVERY
public static final java.lang.String UNASSIGNED_ADDRESS
public static void register()
public static Addresses getInstance() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public java.lang.String[] mapToPostalCountryText(short countryCode, Segment codeSegment) throws org.openmdx.base.exception.ServiceException
countryCode
- codeSegment
- org.openmdx.base.exception.ServiceException
public java.lang.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(java.lang.String country, Segment codeSegment) throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public java.lang.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.