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 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            * 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 _websiteService.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                    _websiteService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            /**
054            * @deprecated As of 6.2.0, replaced by {@link #addWebsite( String, long,
055            String, int, boolean, ServiceContext)}
056            */
057            @Override
058            public com.liferay.portal.model.Website addWebsite(
059                    java.lang.String className, long classPK, java.lang.String url,
060                    int typeId, boolean primary)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return _websiteService.addWebsite(className, classPK, url, typeId,
064                            primary);
065            }
066    
067            @Override
068            public com.liferay.portal.model.Website addWebsite(
069                    java.lang.String className, long classPK, java.lang.String url,
070                    int typeId, boolean primary,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _websiteService.addWebsite(className, classPK, url, typeId,
075                            primary, serviceContext);
076            }
077    
078            @Override
079            public void deleteWebsite(long websiteId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    _websiteService.deleteWebsite(websiteId);
083            }
084    
085            @Override
086            public com.liferay.portal.model.Website getWebsite(long websiteId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return _websiteService.getWebsite(websiteId);
090            }
091    
092            @Override
093            public java.util.List<com.liferay.portal.model.Website> getWebsites(
094                    java.lang.String className, long classPK)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return _websiteService.getWebsites(className, classPK);
098            }
099    
100            @Override
101            public com.liferay.portal.model.Website updateWebsite(long websiteId,
102                    java.lang.String url, int typeId, boolean primary)
103                    throws com.liferay.portal.kernel.exception.PortalException,
104                            com.liferay.portal.kernel.exception.SystemException {
105                    return _websiteService.updateWebsite(websiteId, url, typeId, primary);
106            }
107    
108            /**
109             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
110             */
111            public WebsiteService getWrappedWebsiteService() {
112                    return _websiteService;
113            }
114    
115            /**
116             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
117             */
118            public void setWrappedWebsiteService(WebsiteService websiteService) {
119                    _websiteService = websiteService;
120            }
121    
122            @Override
123            public WebsiteService getWrappedService() {
124                    return _websiteService;
125            }
126    
127            @Override
128            public void setWrappedService(WebsiteService websiteService) {
129                    _websiteService = websiteService;
130            }
131    
132            private WebsiteService _websiteService;
133    }