001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link RegionService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see RegionService
024     * @generated
025     */
026    @ProviderType
027    public class RegionServiceWrapper implements RegionService,
028            ServiceWrapper<RegionService> {
029            public RegionServiceWrapper(RegionService regionService) {
030                    _regionService = regionService;
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 _regionService.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                    _regionService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            @Override
054            public com.liferay.portal.model.Region addRegion(long countryId,
055                    java.lang.String regionCode, java.lang.String name, boolean active)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _regionService.addRegion(countryId, regionCode, name, active);
059            }
060    
061            @Override
062            public com.liferay.portal.model.Region fetchRegion(long regionId)
063                    throws com.liferay.portal.kernel.exception.SystemException {
064                    return _regionService.fetchRegion(regionId);
065            }
066    
067            @Override
068            public com.liferay.portal.model.Region fetchRegion(long countryId,
069                    java.lang.String regionCode)
070                    throws com.liferay.portal.kernel.exception.SystemException {
071                    return _regionService.fetchRegion(countryId, regionCode);
072            }
073    
074            @Override
075            public com.liferay.portal.model.Region getRegion(long regionId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return _regionService.getRegion(regionId);
079            }
080    
081            @Override
082            public com.liferay.portal.model.Region getRegion(long countryId,
083                    java.lang.String regionCode)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _regionService.getRegion(countryId, regionCode);
087            }
088    
089            @Override
090            public java.util.List<com.liferay.portal.model.Region> getRegions()
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _regionService.getRegions();
093            }
094    
095            @Override
096            public java.util.List<com.liferay.portal.model.Region> getRegions(
097                    boolean active)
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return _regionService.getRegions(active);
100            }
101    
102            @Override
103            public java.util.List<com.liferay.portal.model.Region> getRegions(
104                    long countryId)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _regionService.getRegions(countryId);
107            }
108    
109            @Override
110            public java.util.List<com.liferay.portal.model.Region> getRegions(
111                    long countryId, boolean active)
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    return _regionService.getRegions(countryId, active);
114            }
115    
116            /**
117             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
118             */
119            public RegionService getWrappedRegionService() {
120                    return _regionService;
121            }
122    
123            /**
124             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
125             */
126            public void setWrappedRegionService(RegionService regionService) {
127                    _regionService = regionService;
128            }
129    
130            @Override
131            public RegionService getWrappedService() {
132                    return _regionService;
133            }
134    
135            @Override
136            public void setWrappedService(RegionService regionService) {
137                    _regionService = regionService;
138            }
139    
140            private RegionService _regionService;
141    }