001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
023     * Provides the remote service utility for Country. This utility wraps
024     * {@link com.liferay.portal.service.impl.CountryServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see CountryService
032     * @see com.liferay.portal.service.base.CountryServiceBaseImpl
033     * @see com.liferay.portal.service.impl.CountryServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class CountryServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.CountryServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
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            /**
137             * @deprecated As of 6.2.0
138             */
139            public void setService(CountryService service) {
140            }
141    
142            private static CountryService _service;
143    }