001    /**
002     * Copyright (c) 2000-2011 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     * <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    }