001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class PortletPreferencesServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static void deleteArchivedPreferences(long portletItemId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 getService().deleteArchivedPreferences(portletItemId);
063 }
064
065 public static void restoreArchivedPreferences(long groupId,
066 com.liferay.portal.model.Layout layout, java.lang.String portletId,
067 long portletItemId, javax.portlet.PortletPreferences preferences)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 getService()
071 .restoreArchivedPreferences(groupId, layout, portletId,
072 portletItemId, preferences);
073 }
074
075 public static void restoreArchivedPreferences(long groupId,
076 com.liferay.portal.model.Layout layout, java.lang.String portletId,
077 com.liferay.portal.model.PortletItem portletItem,
078 javax.portlet.PortletPreferences preferences)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 getService()
082 .restoreArchivedPreferences(groupId, layout, portletId,
083 portletItem, preferences);
084 }
085
086 public static void restoreArchivedPreferences(long groupId,
087 java.lang.String name, com.liferay.portal.model.Layout layout,
088 java.lang.String portletId, javax.portlet.PortletPreferences preferences)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 getService()
092 .restoreArchivedPreferences(groupId, name, layout, portletId,
093 preferences);
094 }
095
096 public static void updateArchivePreferences(long userId, long groupId,
097 java.lang.String name, java.lang.String portletId,
098 javax.portlet.PortletPreferences preferences)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException {
101 getService()
102 .updateArchivePreferences(userId, groupId, name, portletId,
103 preferences);
104 }
105
106 public static PortletPreferencesService getService() {
107 if (_service == null) {
108 _service = (PortletPreferencesService)PortalBeanLocatorUtil.locate(PortletPreferencesService.class.getName());
109
110 ReferenceRegistry.registerReference(PortletPreferencesServiceUtil.class,
111 "_service");
112 }
113
114 return _service;
115 }
116
117
120 public void setService(PortletPreferencesService service) {
121 }
122
123 private static PortletPreferencesService _service;
124 }