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    /**
020     * Provides a wrapper for {@link CountryService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see CountryService
024     * @generated
025     */
026    @ProviderType
027    public class CountryServiceWrapper implements CountryService,
028            ServiceWrapper<CountryService> {
029            public CountryServiceWrapper(CountryService countryService) {
030                    _countryService = countryService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _countryService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            @Override
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _countryService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            @Override
054            public com.liferay.portal.model.Country addCountry(java.lang.String name,
055                    java.lang.String a2, java.lang.String a3, java.lang.String number,
056                    java.lang.String idd, boolean active)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return _countryService.addCountry(name, a2, a3, number, idd, active);
060            }
061    
062            @Override
063            public com.liferay.portal.model.Country fetchCountry(long countryId)
064                    throws com.liferay.portal.kernel.exception.SystemException {
065                    return _countryService.fetchCountry(countryId);
066            }
067    
068            @Override
069            public com.liferay.portal.model.Country fetchCountryByA2(
070                    java.lang.String a2)
071                    throws com.liferay.portal.kernel.exception.SystemException {
072                    return _countryService.fetchCountryByA2(a2);
073            }
074    
075            @Override
076            public com.liferay.portal.model.Country fetchCountryByA3(
077                    java.lang.String a3)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _countryService.fetchCountryByA3(a3);
080            }
081    
082            @Override
083            public java.util.List<com.liferay.portal.model.Country> getCountries()
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _countryService.getCountries();
086            }
087    
088            @Override
089            public java.util.List<com.liferay.portal.model.Country> getCountries(
090                    boolean active)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _countryService.getCountries(active);
093            }
094    
095            @Override
096            public com.liferay.portal.model.Country getCountry(long countryId)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return _countryService.getCountry(countryId);
100            }
101    
102            @Override
103            public com.liferay.portal.model.Country getCountryByA2(java.lang.String a2)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return _countryService.getCountryByA2(a2);
107            }
108    
109            @Override
110            public com.liferay.portal.model.Country getCountryByA3(java.lang.String a3)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException {
113                    return _countryService.getCountryByA3(a3);
114            }
115    
116            @Override
117            public com.liferay.portal.model.Country getCountryByName(
118                    java.lang.String name)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return _countryService.getCountryByName(name);
122            }
123    
124            /**
125             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
126             */
127            public CountryService getWrappedCountryService() {
128                    return _countryService;
129            }
130    
131            /**
132             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
133             */
134            public void setWrappedCountryService(CountryService countryService) {
135                    _countryService = countryService;
136            }
137    
138            @Override
139            public CountryService getWrappedService() {
140                    return _countryService;
141            }
142    
143            @Override
144            public void setWrappedService(CountryService countryService) {
145                    _countryService = countryService;
146            }
147    
148            private CountryService _countryService;
149    }