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