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.kernel.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 OSGi service identifier.
043            *
044            * @return the OSGi service identifier
045            */
046            @Override
047            public java.lang.String getOSGiServiceIdentifier() {
048                    return _portletPreferencesService.getOSGiServiceIdentifier();
049            }
050    
051            @Override
052            public void restoreArchivedPreferences(long groupId,
053                    com.liferay.portal.kernel.model.Layout layout,
054                    java.lang.String portletId,
055                    com.liferay.portal.kernel.model.PortletItem portletItem,
056                    javax.portlet.PortletPreferences preferences)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
059                            portletId, portletItem, preferences);
060            }
061    
062            @Override
063            public void restoreArchivedPreferences(long groupId,
064                    com.liferay.portal.kernel.model.Layout layout,
065                    java.lang.String portletId, long portletItemId,
066                    javax.portlet.PortletPreferences preferences)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
069                            portletId, portletItemId, preferences);
070            }
071    
072            @Override
073            public void restoreArchivedPreferences(long groupId, java.lang.String name,
074                    com.liferay.portal.kernel.model.Layout layout,
075                    java.lang.String portletId, javax.portlet.PortletPreferences preferences)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    _portletPreferencesService.restoreArchivedPreferences(groupId, name,
078                            layout, portletId, preferences);
079            }
080    
081            @Override
082            public void updateArchivePreferences(long userId, long groupId,
083                    java.lang.String name, java.lang.String portletId,
084                    javax.portlet.PortletPreferences preferences)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
087                            name, portletId, preferences);
088            }
089    
090            @Override
091            public PortletPreferencesService getWrappedService() {
092                    return _portletPreferencesService;
093            }
094    
095            @Override
096            public void setWrappedService(
097                    PortletPreferencesService portletPreferencesService) {
098                    _portletPreferencesService = portletPreferencesService;
099            }
100    
101            private PortletPreferencesService _portletPreferencesService;
102    }