001
014
015 package com.liferay.portal.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.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.model.Country fetchCountry(long countryId) {
051 return getService().fetchCountry(countryId);
052 }
053
054 public static com.liferay.portal.model.Country fetchCountryByA2(
055 java.lang.String a2) {
056 return getService().fetchCountryByA2(a2);
057 }
058
059 public static com.liferay.portal.model.Country fetchCountryByA3(
060 java.lang.String a3) {
061 return getService().fetchCountryByA3(a3);
062 }
063
064 public static java.util.List<com.liferay.portal.model.Country> getCountries() {
065 return getService().getCountries();
066 }
067
068 public static java.util.List<com.liferay.portal.model.Country> getCountries(
069 boolean active) {
070 return getService().getCountries(active);
071 }
072
073 public static com.liferay.portal.model.Country getCountry(long countryId)
074 throws com.liferay.portal.kernel.exception.PortalException {
075 return getService().getCountry(countryId);
076 }
077
078 public static com.liferay.portal.model.Country getCountryByA2(
079 java.lang.String a2)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 return getService().getCountryByA2(a2);
082 }
083
084 public static com.liferay.portal.model.Country getCountryByA3(
085 java.lang.String a3)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 return getService().getCountryByA3(a3);
088 }
089
090 public static com.liferay.portal.model.Country getCountryByName(
091 java.lang.String name)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 return getService().getCountryByName(name);
094 }
095
096
101 public static java.lang.String getOSGiServiceIdentifier() {
102 return getService().getOSGiServiceIdentifier();
103 }
104
105 public static CountryService getService() {
106 if (_service == null) {
107 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
108
109 ReferenceRegistry.registerReference(CountryServiceUtil.class,
110 "_service");
111 }
112
113 return _service;
114 }
115
116 private static CountryService _service;
117 }