1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class PortletPreferencesLocalServiceUtil {
42 public static com.liferay.portal.model.PortletPreferences addPortletPreferences(
43 com.liferay.portal.model.PortletPreferences portletPreferences)
44 throws com.liferay.portal.SystemException {
45 return getService().addPortletPreferences(portletPreferences);
46 }
47
48 public static com.liferay.portal.model.PortletPreferences createPortletPreferences(
49 long portletPreferencesId) {
50 return getService().createPortletPreferences(portletPreferencesId);
51 }
52
53 public static void deletePortletPreferences(long portletPreferencesId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deletePortletPreferences(portletPreferencesId);
57 }
58
59 public static void deletePortletPreferences(
60 com.liferay.portal.model.PortletPreferences portletPreferences)
61 throws com.liferay.portal.SystemException {
62 getService().deletePortletPreferences(portletPreferences);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.PortletPreferences getPortletPreferences(
96 long portletPreferencesId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getPortletPreferences(portletPreferencesId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getPortletPreferenceses(start, end);
105 }
106
107 public static int getPortletPreferencesesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getPortletPreferencesesCount();
110 }
111
112 public static com.liferay.portal.model.PortletPreferences updatePortletPreferences(
113 com.liferay.portal.model.PortletPreferences portletPreferences)
114 throws com.liferay.portal.SystemException {
115 return getService().updatePortletPreferences(portletPreferences);
116 }
117
118 public static com.liferay.portal.model.PortletPreferences updatePortletPreferences(
119 com.liferay.portal.model.PortletPreferences portletPreferences,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updatePortletPreferences(portletPreferences, merge);
122 }
123
124 public static com.liferay.portal.model.PortletPreferences addPortletPreferences(
125 long companyId, long ownerId, int ownerType, long plid,
126 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
127 java.lang.String defaultPreferences)
128 throws com.liferay.portal.SystemException {
129 return getService()
130 .addPortletPreferences(companyId, ownerId, ownerType, plid,
131 portletId, portlet, defaultPreferences);
132 }
133
134 public static void deletePortletPreferences(long ownerId, int ownerType,
135 long plid) throws com.liferay.portal.SystemException {
136 getService().deletePortletPreferences(ownerId, ownerType, plid);
137 }
138
139 public static void deletePortletPreferences(long ownerId, int ownerType,
140 long plid, java.lang.String portletId)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 getService()
144 .deletePortletPreferences(ownerId, ownerType, plid, portletId);
145 }
146
147 public static javax.portlet.PortletPreferences getDefaultPreferences(
148 long companyId, java.lang.String portletId)
149 throws com.liferay.portal.SystemException {
150 return getService().getDefaultPreferences(companyId, portletId);
151 }
152
153 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
154 throws com.liferay.portal.SystemException {
155 return getService().getPortletPreferences();
156 }
157
158 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
159 long plid, java.lang.String portletId)
160 throws com.liferay.portal.SystemException {
161 return getService().getPortletPreferences(plid, portletId);
162 }
163
164 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
165 long ownerId, int ownerType, long plid)
166 throws com.liferay.portal.SystemException {
167 return getService().getPortletPreferences(ownerId, ownerType, plid);
168 }
169
170 public static com.liferay.portal.model.PortletPreferences getPortletPreferences(
171 long ownerId, int ownerType, long plid, java.lang.String portletId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 return getService()
175 .getPortletPreferences(ownerId, ownerType, plid, portletId);
176 }
177
178 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
179 long plid) throws com.liferay.portal.SystemException {
180 return getService().getPortletPreferencesByPlid(plid);
181 }
182
183 public static javax.portlet.PortletPreferences getPreferences(
184 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
185 throws com.liferay.portal.SystemException {
186 return getService().getPreferences(portletPreferencesIds);
187 }
188
189 public static javax.portlet.PortletPreferences getPreferences(
190 long companyId, long ownerId, int ownerType, long plid,
191 java.lang.String portletId) throws com.liferay.portal.SystemException {
192 return getService()
193 .getPreferences(companyId, ownerId, ownerType, plid,
194 portletId);
195 }
196
197 public static javax.portlet.PortletPreferences getPreferences(
198 long companyId, long ownerId, int ownerType, long plid,
199 java.lang.String portletId, java.lang.String defaultPreferences)
200 throws com.liferay.portal.SystemException {
201 return getService()
202 .getPreferences(companyId, ownerId, ownerType, plid,
203 portletId, defaultPreferences);
204 }
205
206 public static com.liferay.portal.model.PortletPreferences updatePreferences(
207 long ownerId, int ownerType, long plid, java.lang.String portletId,
208 javax.portlet.PortletPreferences preferences)
209 throws com.liferay.portal.SystemException {
210 return getService()
211 .updatePreferences(ownerId, ownerType, plid, portletId,
212 preferences);
213 }
214
215 public static com.liferay.portal.model.PortletPreferences updatePreferences(
216 long ownerId, int ownerType, long plid, java.lang.String portletId,
217 java.lang.String xml) throws com.liferay.portal.SystemException {
218 return getService()
219 .updatePreferences(ownerId, ownerType, plid, portletId, xml);
220 }
221
222 public static PortletPreferencesLocalService getService() {
223 if (_service == null) {
224 _service = (PortletPreferencesLocalService)PortalBeanLocatorUtil.locate(PortletPreferencesLocalService.class.getName());
225
226 ReferenceRegistry.registerReference(PortletPreferencesLocalServiceUtil.class,
227 "_service");
228 MethodCache.remove(PortletPreferencesLocalService.class);
229 }
230
231 return _service;
232 }
233
234 public void setService(PortletPreferencesLocalService service) {
235 MethodCache.remove(PortletPreferencesLocalService.class);
236
237 _service = service;
238
239 ReferenceRegistry.registerReference(PortletPreferencesLocalServiceUtil.class,
240 "_service");
241 MethodCache.remove(PortletPreferencesLocalService.class);
242 }
243
244 private static PortletPreferencesLocalService _service;
245 }