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 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.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            @Override
080            public void updateArchivePreferences(long userId, long groupId,
081                    java.lang.String name, java.lang.String portletId,
082                    javax.portlet.PortletPreferences preferences)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
085                            name, portletId, preferences);
086            }
087    
088            @Override
089            public PortletPreferencesService getWrappedService() {
090                    return _portletPreferencesService;
091            }
092    
093            @Override
094            public void setWrappedService(
095                    PortletPreferencesService portletPreferencesService) {
096                    _portletPreferencesService = portletPreferencesService;
097            }
098    
099            private PortletPreferencesService _portletPreferencesService;
100    }