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 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 countryId,
063                    java.lang.String regionCode)
064                    throws com.liferay.portal.kernel.exception.SystemException {
065                    return _regionService.fetchRegion(countryId, regionCode);
066            }
067    
068            @Override
069            public com.liferay.portal.model.Region getRegion(long regionId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _regionService.getRegion(regionId);
073            }
074    
075            @Override
076            public com.liferay.portal.model.Region getRegion(long countryId,
077                    java.lang.String regionCode)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return _regionService.getRegion(countryId, regionCode);
081            }
082    
083            @Override
084            public java.util.List<com.liferay.portal.model.Region> getRegions()
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _regionService.getRegions();
087            }
088    
089            @Override
090            public java.util.List<com.liferay.portal.model.Region> getRegions(
091                    boolean active)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _regionService.getRegions(active);
094            }
095    
096            @Override
097            public java.util.List<com.liferay.portal.model.Region> getRegions(
098                    long countryId)
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return _regionService.getRegions(countryId);
101            }
102    
103            @Override
104            public java.util.List<com.liferay.portal.model.Region> getRegions(
105                    long countryId, boolean active)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _regionService.getRegions(countryId, active);
108            }
109    
110            /**
111             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
112             */
113            public RegionService getWrappedRegionService() {
114                    return _regionService;
115            }
116    
117            /**
118             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
119             */
120            public void setWrappedRegionService(RegionService regionService) {
121                    _regionService = regionService;
122            }
123    
124            @Override
125            public RegionService getWrappedService() {
126                    return _regionService;
127            }
128    
129            @Override
130            public void setWrappedService(RegionService regionService) {
131                    _regionService = regionService;
132            }
133    
134            private RegionService _regionService;
135    }