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