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 PortletService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see PortletService
022     * @generated
023     */
024    public class PortletServiceWrapper implements PortletService,
025            ServiceWrapper<PortletService> {
026            public PortletServiceWrapper(PortletService portletService) {
027                    _portletService = portletService;
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 _portletService.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                    _portletService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            @Override
051            public com.liferay.portal.kernel.json.JSONArray getWARPortlets() {
052                    return _portletService.getWARPortlets();
053            }
054    
055            @Override
056            public com.liferay.portal.model.Portlet updatePortlet(long companyId,
057                    java.lang.String portletId, java.lang.String roles, boolean active)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _portletService.updatePortlet(companyId, portletId, roles, active);
061            }
062    
063            /**
064             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
065             */
066            public PortletService getWrappedPortletService() {
067                    return _portletService;
068            }
069    
070            /**
071             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
072             */
073            public void setWrappedPortletService(PortletService portletService) {
074                    _portletService = portletService;
075            }
076    
077            @Override
078            public PortletService getWrappedService() {
079                    return _portletService;
080            }
081    
082            @Override
083            public void setWrappedService(PortletService portletService) {
084                    _portletService = portletService;
085            }
086    
087            private PortletService _portletService;
088    }