001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class CountryServiceUtil {
038
043 public static com.liferay.portal.kernel.model.Country addCountry(
044 java.lang.String name, java.lang.String a2, java.lang.String a3,
045 java.lang.String number, java.lang.String idd, boolean active)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService().addCountry(name, a2, a3, number, idd, active);
048 }
049
050 public static com.liferay.portal.kernel.model.Country fetchCountry(
051 long countryId) {
052 return getService().fetchCountry(countryId);
053 }
054
055 public static com.liferay.portal.kernel.model.Country fetchCountryByA2(
056 java.lang.String a2) {
057 return getService().fetchCountryByA2(a2);
058 }
059
060 public static com.liferay.portal.kernel.model.Country fetchCountryByA3(
061 java.lang.String a3) {
062 return getService().fetchCountryByA3(a3);
063 }
064
065 public static com.liferay.portal.kernel.model.Country getCountry(
066 long countryId)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 return getService().getCountry(countryId);
069 }
070
071 public static com.liferay.portal.kernel.model.Country getCountryByA2(
072 java.lang.String a2)
073 throws com.liferay.portal.kernel.exception.PortalException {
074 return getService().getCountryByA2(a2);
075 }
076
077 public static com.liferay.portal.kernel.model.Country getCountryByA3(
078 java.lang.String a3)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService().getCountryByA3(a3);
081 }
082
083 public static com.liferay.portal.kernel.model.Country getCountryByName(
084 java.lang.String name)
085 throws com.liferay.portal.kernel.exception.PortalException {
086 return getService().getCountryByName(name);
087 }
088
089
094 public static java.lang.String getOSGiServiceIdentifier() {
095 return getService().getOSGiServiceIdentifier();
096 }
097
098 public static java.util.List<com.liferay.portal.kernel.model.Country> getCountries() {
099 return getService().getCountries();
100 }
101
102 public static java.util.List<com.liferay.portal.kernel.model.Country> getCountries(
103 boolean active) {
104 return getService().getCountries(active);
105 }
106
107 public static CountryService getService() {
108 if (_service == null) {
109 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
110
111 ReferenceRegistry.registerReference(CountryServiceUtil.class,
112 "_service");
113 }
114
115 return _service;
116 }
117
118 private static CountryService _service;
119 }