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 PortletPreferencesService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PortletPreferencesService
024     * @generated
025     */
026    @ProviderType
027    public class PortletPreferencesServiceWrapper
028            implements PortletPreferencesService,
029                    ServiceWrapper<PortletPreferencesService> {
030            public PortletPreferencesServiceWrapper(
031                    PortletPreferencesService portletPreferencesService) {
032                    _portletPreferencesService = portletPreferencesService;
033            }
034    
035            @Override
036            public void deleteArchivedPreferences(long portletItemId)
037                    throws com.liferay.portal.kernel.exception.PortalException {
038                    _portletPreferencesService.deleteArchivedPreferences(portletItemId);
039            }
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            @Override
047            public java.lang.String getBeanIdentifier() {
048                    return _portletPreferencesService.getBeanIdentifier();
049            }
050    
051            @Override
052            public void restoreArchivedPreferences(long groupId,
053                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
054                    com.liferay.portal.model.PortletItem portletItem,
055                    javax.portlet.PortletPreferences preferences)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
058                            portletId, portletItem, preferences);
059            }
060    
061            @Override
062            public void restoreArchivedPreferences(long groupId,
063                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
064                    long portletItemId, javax.portlet.PortletPreferences preferences)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
067                            portletId, portletItemId, preferences);
068            }
069    
070            @Override
071            public void restoreArchivedPreferences(long groupId, java.lang.String name,
072                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
073                    javax.portlet.PortletPreferences preferences)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    _portletPreferencesService.restoreArchivedPreferences(groupId, name,
076                            layout, portletId, preferences);
077            }
078    
079            /**
080            * Sets the Spring bean ID for this bean.
081            *
082            * @param beanIdentifier the Spring bean ID for this bean
083            */
084            @Override
085            public void setBeanIdentifier(java.lang.String beanIdentifier) {
086                    _portletPreferencesService.setBeanIdentifier(beanIdentifier);
087            }
088    
089            @Override
090            public void updateArchivePreferences(long userId, long groupId,
091                    java.lang.String name, java.lang.String portletId,
092                    javax.portlet.PortletPreferences preferences)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
095                            name, portletId, preferences);
096            }
097    
098            /**
099             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
100             */
101            @Deprecated
102            public PortletPreferencesService getWrappedPortletPreferencesService() {
103                    return _portletPreferencesService;
104            }
105    
106            /**
107             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
108             */
109            @Deprecated
110            public void setWrappedPortletPreferencesService(
111                    PortletPreferencesService portletPreferencesService) {
112                    _portletPreferencesService = portletPreferencesService;
113            }
114    
115            @Override
116            public PortletPreferencesService getWrappedService() {
117                    return _portletPreferencesService;
118            }
119    
120            @Override
121            public void setWrappedService(
122                    PortletPreferencesService portletPreferencesService) {
123                    _portletPreferencesService = portletPreferencesService;
124            }
125    
126            private PortletPreferencesService _portletPreferencesService;
127    }