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
069 public static java.lang.String getBeanIdentifier() {
070 return getService().getBeanIdentifier();
071 }
072
073 public static java.util.List<com.liferay.portal.model.Country> getCountries() {
074 return getService().getCountries();
075 }
076
077 public static java.util.List<com.liferay.portal.model.Country> getCountries(
078 boolean active) {
079 return getService().getCountries(active);
080 }
081
082 public static com.liferay.portal.model.Country getCountry(long countryId)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 return getService().getCountry(countryId);
085 }
086
087 public static com.liferay.portal.model.Country getCountryByA2(
088 java.lang.String a2)
089 throws com.liferay.portal.kernel.exception.PortalException {
090 return getService().getCountryByA2(a2);
091 }
092
093 public static com.liferay.portal.model.Country getCountryByA3(
094 java.lang.String a3)
095 throws com.liferay.portal.kernel.exception.PortalException {
096 return getService().getCountryByA3(a3);
097 }
098
099 public static com.liferay.portal.model.Country getCountryByName(
100 java.lang.String name)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 return getService().getCountryByName(name);
103 }
104
105
110 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
111 getService().setBeanIdentifier(beanIdentifier);
112 }
113
114 public static CountryService getService() {
115 if (_service == null) {
116 _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
117
118 ReferenceRegistry.registerReference(CountryServiceUtil.class,
119 "_service");
120 }
121
122 return _service;
123 }
124
125
128 @Deprecated
129 public void setService(CountryService service) {
130 }
131
132 private static CountryService _service;
133 }