001    /**
002     * Copyright (c) 2000-2013 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     * Provides a wrapper for {@link PortletPreferencesService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see PortletPreferencesService
022     * @generated
023     */
024    public class PortletPreferencesServiceWrapper
025            implements PortletPreferencesService,
026                    ServiceWrapper<PortletPreferencesService> {
027            public PortletPreferencesServiceWrapper(
028                    PortletPreferencesService portletPreferencesService) {
029                    _portletPreferencesService = portletPreferencesService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            @Override
038            public java.lang.String getBeanIdentifier() {
039                    return _portletPreferencesService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            @Override
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _portletPreferencesService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            @Override
053            public void deleteArchivedPreferences(long portletItemId)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    _portletPreferencesService.deleteArchivedPreferences(portletItemId);
057            }
058    
059            @Override
060            public void restoreArchivedPreferences(long groupId,
061                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
062                    long portletItemId, javax.portlet.PortletPreferences preferences)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
066                            portletId, portletItemId, preferences);
067            }
068    
069            @Override
070            public void restoreArchivedPreferences(long groupId,
071                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
072                    com.liferay.portal.model.PortletItem portletItem,
073                    javax.portlet.PortletPreferences preferences)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    _portletPreferencesService.restoreArchivedPreferences(groupId, layout,
077                            portletId, portletItem, preferences);
078            }
079    
080            @Override
081            public void restoreArchivedPreferences(long groupId, java.lang.String name,
082                    com.liferay.portal.model.Layout layout, java.lang.String portletId,
083                    javax.portlet.PortletPreferences preferences)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    _portletPreferencesService.restoreArchivedPreferences(groupId, name,
087                            layout, portletId, preferences);
088            }
089    
090            @Override
091            public void updateArchivePreferences(long userId, long groupId,
092                    java.lang.String name, java.lang.String portletId,
093                    javax.portlet.PortletPreferences preferences)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    _portletPreferencesService.updateArchivePreferences(userId, groupId,
097                            name, portletId, preferences);
098            }
099    
100            /**
101             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
102             */
103            public PortletPreferencesService getWrappedPortletPreferencesService() {
104                    return _portletPreferencesService;
105            }
106    
107            /**
108             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
109             */
110            public void setWrappedPortletPreferencesService(
111                    PortletPreferencesService portletPreferencesService) {
112                    _portletPreferencesService = portletPreferencesService;
113            }
114    
115            @Override
116            public PortletPreferencesService getWrappedService() {
117                    return _portletPreferencesService;
118            }
119    
120            @Override
121            public void setWrappedService(
122                    PortletPreferencesService portletPreferencesService) {
123                    _portletPreferencesService = portletPreferencesService;
124            }
125    
126            private PortletPreferencesService _portletPreferencesService;
127    }