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
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portal.model.Country addCountry(
063 java.lang.String name, java.lang.String a2, java.lang.String a3,
064 java.lang.String number, java.lang.String idd, boolean active)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return getService().addCountry(name, a2, a3, number, idd, active);
068 }
069
070 public static com.liferay.portal.model.Country fetchCountry(long countryId)
071 throws com.liferay.portal.kernel.exception.SystemException {
072 return getService().fetchCountry(countryId);
073 }
074
075 public static com.liferay.portal.model.Country fetchCountryByA2(
076 java.lang.String a2)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return getService().fetchCountryByA2(a2);
079 }
080
081 public static com.liferay.portal.model.Country fetchCountryByA3(
082 java.lang.String a3)
083 throws com.liferay.portal.kernel.exception.SystemException {
084 return getService().fetchCountryByA3(a3);
085 }
086
087 public static java.util.List<com.liferay.portal.model.Country> getCountries()
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().getCountries();
090 }
091
092 public static java.util.List<com.liferay.portal.model.Country> getCountries(
093 boolean active)
094 throws com.liferay.portal.kernel.exception.SystemException {
095 return getService().getCountries(active);
096 }
097
098 public static com.liferay.portal.model.Country getCountry(long countryId)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException {
101 return getService().getCountry(countryId);
102 }
103
104 public static com.liferay.portal.model.Country getCountryByA2(
105 java.lang.String a2)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getService().getCountryByA2(a2);
109 }
110
111 public static com.liferay.portal.model.Country getCountryByA3(
112 java.lang.String a3)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException {
115 return getService().getCountryByA3(a3);
116 }
117
118 public static com.liferay.portal.model.Country getCountryByName(
119 java.lang.String name)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException {
122 return getService().getCountryByName(name);
123 }
124
125 public static CountryService getService() {
126 if (_service == null) {
127 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
128
129 ReferenceRegistry.registerReference(CountryServiceUtil.class,
130 "_service");
131 }
132
133 return _service;
134 }
135
136
139 public void setService(CountryService service) {
140 }
141
142 private static CountryService _service;
143 }