001    /**
002     * Copyright (c) 2000-present 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            @Override
034            public com.liferay.portal.model.Region addRegion(long countryId,
035                    java.lang.String regionCode, java.lang.String name, boolean active)
036                    throws com.liferay.portal.kernel.exception.PortalException {
037                    return _regionService.addRegion(countryId, regionCode, name, active);
038            }
039    
040            @Override
041            public com.liferay.portal.model.Region fetchRegion(long countryId,
042                    java.lang.String regionCode) {
043                    return _regionService.fetchRegion(countryId, regionCode);
044            }
045    
046            @Override
047            public com.liferay.portal.model.Region fetchRegion(long regionId) {
048                    return _regionService.fetchRegion(regionId);
049            }
050    
051            /**
052            * Returns the OSGi service identifier.
053            *
054            * @return the OSGi service identifier
055            */
056            @Override
057            public java.lang.String getOSGiServiceIdentifier() {
058                    return _regionService.getOSGiServiceIdentifier();
059            }
060    
061            @Override
062            public com.liferay.portal.model.Region getRegion(long countryId,
063                    java.lang.String regionCode)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _regionService.getRegion(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                    return _regionService.getRegion(regionId);
072            }
073    
074            @Override
075            public java.util.List<com.liferay.portal.model.Region> getRegions() {
076                    return _regionService.getRegions();
077            }
078    
079            @Override
080            public java.util.List<com.liferay.portal.model.Region> getRegions(
081                    boolean active) {
082                    return _regionService.getRegions(active);
083            }
084    
085            @Override
086            public java.util.List<com.liferay.portal.model.Region> getRegions(
087                    long countryId) {
088                    return _regionService.getRegions(countryId);
089            }
090    
091            @Override
092            public java.util.List<com.liferay.portal.model.Region> getRegions(
093                    long countryId, boolean active) {
094                    return _regionService.getRegions(countryId, active);
095            }
096    
097            @Override
098            public RegionService getWrappedService() {
099                    return _regionService;
100            }
101    
102            @Override
103            public void setWrappedService(RegionService regionService) {
104                    _regionService = regionService;
105            }
106    
107            private RegionService _regionService;
108    }