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 WebsiteService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see WebsiteService
024     * @generated
025     */
026    @ProviderType
027    public class WebsiteServiceWrapper implements WebsiteService,
028            ServiceWrapper<WebsiteService> {
029            public WebsiteServiceWrapper(WebsiteService websiteService) {
030                    _websiteService = websiteService;
031            }
032    
033            /**
034            * @deprecated As of 6.2.0, replaced by {@link #addWebsite(String, long,
035            String, int, boolean, ServiceContext)}
036            */
037            @Deprecated
038            @Override
039            public com.liferay.portal.model.Website addWebsite(
040                    java.lang.String className, long classPK, java.lang.String url,
041                    long typeId, boolean primary)
042                    throws com.liferay.portal.kernel.exception.PortalException {
043                    return _websiteService.addWebsite(className, classPK, url, typeId,
044                            primary);
045            }
046    
047            @Override
048            public com.liferay.portal.model.Website addWebsite(
049                    java.lang.String className, long classPK, java.lang.String url,
050                    long typeId, boolean primary,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException {
053                    return _websiteService.addWebsite(className, classPK, url, typeId,
054                            primary, serviceContext);
055            }
056    
057            @Override
058            public void deleteWebsite(long websiteId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    _websiteService.deleteWebsite(websiteId);
061            }
062    
063            /**
064            * Returns the OSGi service identifier.
065            *
066            * @return the OSGi service identifier
067            */
068            @Override
069            public java.lang.String getOSGiServiceIdentifier() {
070                    return _websiteService.getOSGiServiceIdentifier();
071            }
072    
073            @Override
074            public com.liferay.portal.model.Website getWebsite(long websiteId)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return _websiteService.getWebsite(websiteId);
077            }
078    
079            @Override
080            public java.util.List<com.liferay.portal.model.Website> getWebsites(
081                    java.lang.String className, long classPK)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    return _websiteService.getWebsites(className, classPK);
084            }
085    
086            @Override
087            public com.liferay.portal.model.Website updateWebsite(long websiteId,
088                    java.lang.String url, long typeId, boolean primary)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return _websiteService.updateWebsite(websiteId, url, typeId, primary);
091            }
092    
093            @Override
094            public WebsiteService getWrappedService() {
095                    return _websiteService;
096            }
097    
098            @Override
099            public void setWrappedService(WebsiteService websiteService) {
100                    _websiteService = websiteService;
101            }
102    
103            private WebsiteService _websiteService;
104    }