001    /**
002     * Copyright (c) 2000-2010 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    /**
019     * <p>
020     * This class is a wrapper for {@link PortletPreferencesService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       PortletPreferencesService
025     * @generated
026     */
027    public class PortletPreferencesServiceWrapper
028            implements PortletPreferencesService {
029            public PortletPreferencesServiceWrapper(
030                    PortletPreferencesService portletPreferencesService) {
031                    _portletPreferencesService = portletPreferencesService;
032            }
033    
034            public void deleteArchivedPreferences(long portletItemId)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    _portletPreferencesService.deleteArchivedPreferences(portletItemId);
038            }
039    
040            public void restoreArchivedPreferences(long groupId, java.lang.String name,
041                    java.lang.String portletId, javax.portlet.PortletPreferences preferences)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    _portletPreferencesService.restoreArchivedPreferences(groupId, name,
045                            portletId, preferences);
046            }
047    
048            public void updateArchivePreferences(long userId, long groupId,
049                    java.lang.String name, java.lang.String portletId,
050                    javax.portlet.PortletPreferences preferences)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException {
053                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
054                            name, portletId, preferences);
055            }
056    
057            public PortletPreferencesService getWrappedPortletPreferencesService() {
058                    return _portletPreferencesService;
059            }
060    
061            private PortletPreferencesService _portletPreferencesService;
062    }