001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PortletPreferencesService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PortletPreferencesService
024     * @generated
025     */
026    public class PortletPreferencesServiceWrapper
027            implements PortletPreferencesService {
028            public PortletPreferencesServiceWrapper(
029                    PortletPreferencesService portletPreferencesService) {
030                    _portletPreferencesService = portletPreferencesService;
031            }
032    
033            public void deleteArchivedPreferences(long portletItemId)
034                    throws com.liferay.portal.kernel.exception.PortalException,
035                            com.liferay.portal.kernel.exception.SystemException {
036                    _portletPreferencesService.deleteArchivedPreferences(portletItemId);
037            }
038    
039            public void restoreArchivedPreferences(long groupId, java.lang.String name,
040                    java.lang.String portletId, javax.portlet.PortletPreferences preferences)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    _portletPreferencesService.restoreArchivedPreferences(groupId, name,
044                            portletId, preferences);
045            }
046    
047            public void updateArchivePreferences(long userId, long groupId,
048                    java.lang.String name, java.lang.String portletId,
049                    javax.portlet.PortletPreferences preferences)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
053                            name, portletId, preferences);
054            }
055    
056            public PortletPreferencesService getWrappedPortletPreferencesService() {
057                    return _portletPreferencesService;
058            }
059    
060            private PortletPreferencesService _portletPreferencesService;
061    }