001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class CountryServiceUtil {
037 public static com.liferay.portal.model.Country addCountry(
038 java.lang.String name, java.lang.String a2, java.lang.String a3,
039 java.lang.String number, java.lang.String idd, boolean active)
040 throws com.liferay.portal.kernel.exception.PortalException,
041 com.liferay.portal.kernel.exception.SystemException {
042 return getService().addCountry(name, a2, a3, number, idd, active);
043 }
044
045 public static java.util.List<com.liferay.portal.model.Country> getCountries()
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().getCountries();
048 }
049
050 public static java.util.List<com.liferay.portal.model.Country> getCountries(
051 boolean active)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 return getService().getCountries(active);
054 }
055
056 public static com.liferay.portal.model.Country getCountry(long countryId)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return getService().getCountry(countryId);
060 }
061
062 public static com.liferay.portal.model.Country getCountryByA2(
063 java.lang.String a2)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService().getCountryByA2(a2);
067 }
068
069 public static com.liferay.portal.model.Country getCountryByA3(
070 java.lang.String a3)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService().getCountryByA3(a3);
074 }
075
076 public static com.liferay.portal.model.Country getCountryByName(
077 java.lang.String name)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getCountryByName(name);
081 }
082
083 public static CountryService getService() {
084 if (_service == null) {
085 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
086 }
087
088 return _service;
089 }
090
091 public void setService(CountryService service) {
092 _service = service;
093 }
094
095 private static CountryService _service;
096 }