org.opencrx.kernel.backend
Class Addresses

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.Addresses

public class Addresses
extends AbstractImpl


Field Summary
static String[] ADDRESS_TYPES
           
static Map<Integer,Integer> phoneCountries
           
static Map<Integer,String> postalCountries
           
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
           
 
Constructor Summary
protected Addresses()
           
 
Method Summary
static Addresses getInstance()
           
 int mapToPhoneCountryCode(int prefix)
           
 Integer mapToPhoneCountryPrefix(int countryCode)
           
 short mapToPostalCountryCode(String country)
           
 String mapToPostalCountryText(short countryCode)
           
static void register()
           
 void updatePhoneNumber(PhoneNumberAddressable object)
           
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDRESS_TYPES

public static final String[] ADDRESS_TYPES

postalCountries

public static final Map<Integer,String> postalCountries

phoneCountries

public static final Map<Integer,Integer> phoneCountries

USAGE_BUSINESS_MOBILE

public static final Short USAGE_BUSINESS_MOBILE
Deprecated. 

USAGE_HOME_MOBILE

public static final Short USAGE_HOME_MOBILE
Deprecated. 

USAGE_MOBILE

public static final Short USAGE_MOBILE

USAGE_BUSINESS_FAX

public static final Short USAGE_BUSINESS_FAX

USAGE_HOME_FAX

public static final Short USAGE_HOME_FAX

USAGE_BUSINESS_MAIN_PHONE

public static final Short USAGE_BUSINESS_MAIN_PHONE
Deprecated. 

USAGE_HOME_MAIN_PHONE

public static final Short USAGE_HOME_MAIN_PHONE
Deprecated. 

USAGE_OTHER

public static final Short USAGE_OTHER

USAGE_BUSINESS

public static final Short USAGE_BUSINESS

USAGE_HOME

public static final Short USAGE_HOME

USAGE_CONTRACT_INVOICE

public static final Short USAGE_CONTRACT_INVOICE

USAGE_CONTRACT_DELIVERY

public static final Short USAGE_CONTRACT_DELIVERY

UNASSIGNED_ADDRESS

public static final String UNASSIGNED_ADDRESS
See Also:
Constant Field Values
Constructor Detail

Addresses

protected Addresses()
Method Detail

register

public static void register()

getInstance

public static Addresses getInstance()
                             throws ServiceException
Throws:
ServiceException

mapToPostalCountryText

public String mapToPostalCountryText(short countryCode)
                              throws ServiceException
Throws:
ServiceException

mapToPostalCountryCode

public short mapToPostalCountryCode(String country)
                             throws ServiceException
Throws:
ServiceException

mapToPhoneCountryPrefix

public Integer mapToPhoneCountryPrefix(int countryCode)
                                throws ServiceException
Throws:
ServiceException

mapToPhoneCountryCode

public int mapToPhoneCountryCode(int prefix)
                          throws ServiceException
Throws:
ServiceException

updatePhoneNumber

public void updatePhoneNumber(PhoneNumberAddressable object)
                       throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.