001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the country remote service. This utility wraps {@link com.liferay.portal.service.impl.CountryServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.CountryServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
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    public class CountryServiceUtil {
037            public static com.liferay.portal.model.Country addCountry(
038                    java.lang.String name, java.lang.String a2, java.lang.String a3,
039                    java.lang.String number, java.lang.String idd, boolean active)
040                    throws com.liferay.portal.kernel.exception.PortalException,
041                            com.liferay.portal.kernel.exception.SystemException {
042                    return getService().addCountry(name, a2, a3, number, idd, active);
043            }
044    
045            public static java.util.List<com.liferay.portal.model.Country> getCountries()
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getService().getCountries();
048            }
049    
050            public static java.util.List<com.liferay.portal.model.Country> getCountries(
051                    boolean active)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    return getService().getCountries(active);
054            }
055    
056            public static com.liferay.portal.model.Country getCountry(long countryId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return getService().getCountry(countryId);
060            }
061    
062            public static com.liferay.portal.model.Country getCountryByA2(
063                    java.lang.String a2)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return getService().getCountryByA2(a2);
067            }
068    
069            public static com.liferay.portal.model.Country getCountryByA3(
070                    java.lang.String a3)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return getService().getCountryByA3(a3);
074            }
075    
076            public static com.liferay.portal.model.Country getCountryByName(
077                    java.lang.String name)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().getCountryByName(name);
081            }
082    
083            public static CountryService getService() {
084                    if (_service == null) {
085                            _service = (CountryService)PortalBeanLocatorUtil.locate(CountryService.class.getName());
086                    }
087    
088                    return _service;
089            }
090    
091            public void setService(CountryService service) {
092                    _service = service;
093            }
094    
095            private static CountryService _service;
096    }