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    /**
018     * Provides a wrapper for {@link RegionService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see RegionService
022     * @generated
023     */
024    public class RegionServiceWrapper implements RegionService,
025            ServiceWrapper<RegionService> {
026            public RegionServiceWrapper(RegionService regionService) {
027                    _regionService = regionService;
028            }
029    
030            /**
031            * Returns the Spring bean ID for this bean.
032            *
033            * @return the Spring bean ID for this bean
034            */
035            @Override
036            public java.lang.String getBeanIdentifier() {
037                    return _regionService.getBeanIdentifier();
038            }
039    
040            /**
041            * Sets the Spring bean ID for this bean.
042            *
043            * @param beanIdentifier the Spring bean ID for this bean
044            */
045            @Override
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _regionService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            @Override
051            public com.liferay.portal.model.Region addRegion(long countryId,
052                    java.lang.String regionCode, java.lang.String name, boolean active)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    return _regionService.addRegion(countryId, regionCode, name, active);
056            }
057    
058            @Override
059            public com.liferay.portal.model.Region fetchRegion(long countryId,
060                    java.lang.String regionCode)
061                    throws com.liferay.portal.kernel.exception.SystemException {
062                    return _regionService.fetchRegion(countryId, regionCode);
063            }
064    
065            @Override
066            public com.liferay.portal.model.Region getRegion(long regionId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _regionService.getRegion(regionId);
070            }
071    
072            @Override
073            public com.liferay.portal.model.Region getRegion(long countryId,
074                    java.lang.String regionCode)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return _regionService.getRegion(countryId, regionCode);
078            }
079    
080            @Override
081            public java.util.List<com.liferay.portal.model.Region> getRegions()
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _regionService.getRegions();
084            }
085    
086            @Override
087            public java.util.List<com.liferay.portal.model.Region> getRegions(
088                    boolean active)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _regionService.getRegions(active);
091            }
092    
093            @Override
094            public java.util.List<com.liferay.portal.model.Region> getRegions(
095                    long countryId)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _regionService.getRegions(countryId);
098            }
099    
100            @Override
101            public java.util.List<com.liferay.portal.model.Region> getRegions(
102                    long countryId, boolean active)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _regionService.getRegions(countryId, active);
105            }
106    
107            /**
108             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
109             */
110            public RegionService getWrappedRegionService() {
111                    return _regionService;
112            }
113    
114            /**
115             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
116             */
117            public void setWrappedRegionService(RegionService regionService) {
118                    _regionService = regionService;
119            }
120    
121            @Override
122            public RegionService getWrappedService() {
123                    return _regionService;
124            }
125    
126            @Override
127            public void setWrappedService(RegionService regionService) {
128                    _regionService = regionService;
129            }
130    
131            private RegionService _regionService;
132    }