001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class PortletPreferencesLocalServiceUtil {
038
043 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044 return getService().getActionableDynamicQuery();
045 }
046
047 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048 return getService().dynamicQuery();
049 }
050
051 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052 return getService().getIndexableActionableDynamicQuery();
053 }
054
055
058 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
059 com.liferay.portal.kernel.model.PersistedModel persistedModel)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService().deletePersistedModel(persistedModel);
062 }
063
064 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065 java.io.Serializable primaryKeyObj)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService().getPersistedModel(primaryKeyObj);
068 }
069
070
076 public static com.liferay.portal.kernel.model.PortletPreferences addPortletPreferences(
077 com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
078 return getService().addPortletPreferences(portletPreferences);
079 }
080
081 public static com.liferay.portal.kernel.model.PortletPreferences addPortletPreferences(
082 long companyId, long ownerId, int ownerType, long plid,
083 java.lang.String portletId,
084 com.liferay.portal.kernel.model.Portlet portlet,
085 java.lang.String defaultPreferences) {
086 return getService()
087 .addPortletPreferences(companyId, ownerId, ownerType, plid,
088 portletId, portlet, defaultPreferences);
089 }
090
091
097 public static com.liferay.portal.kernel.model.PortletPreferences createPortletPreferences(
098 long portletPreferencesId) {
099 return getService().createPortletPreferences(portletPreferencesId);
100 }
101
102
108 public static com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(
109 com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
110 return getService().deletePortletPreferences(portletPreferences);
111 }
112
113
120 public static com.liferay.portal.kernel.model.PortletPreferences deletePortletPreferences(
121 long portletPreferencesId)
122 throws com.liferay.portal.kernel.exception.PortalException {
123 return getService().deletePortletPreferences(portletPreferencesId);
124 }
125
126 public static com.liferay.portal.kernel.model.PortletPreferences fetchPortletPreferences(
127 long portletPreferencesId) {
128 return getService().fetchPortletPreferences(portletPreferencesId);
129 }
130
131 public static com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(
132 long ownerId, int ownerType, long plid, java.lang.String portletId)
133 throws com.liferay.portal.kernel.exception.PortalException {
134 return getService()
135 .getPortletPreferences(ownerId, ownerType, plid, portletId);
136 }
137
138
145 public static com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(
146 long portletPreferencesId)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 return getService().getPortletPreferences(portletPreferencesId);
149 }
150
151
157 public static com.liferay.portal.kernel.model.PortletPreferences updatePortletPreferences(
158 com.liferay.portal.kernel.model.PortletPreferences portletPreferences) {
159 return getService().updatePortletPreferences(portletPreferences);
160 }
161
162 public static com.liferay.portal.kernel.model.PortletPreferences updatePreferences(
163 long ownerId, int ownerType, long plid, java.lang.String portletId,
164 java.lang.String xml) {
165 return getService()
166 .updatePreferences(ownerId, ownerType, plid, portletId, xml);
167 }
168
169 public static com.liferay.portal.kernel.model.PortletPreferences updatePreferences(
170 long ownerId, int ownerType, long plid, java.lang.String portletId,
171 javax.portlet.PortletPreferences portletPreferences) {
172 return getService()
173 .updatePreferences(ownerId, ownerType, plid, portletId,
174 portletPreferences);
175 }
176
177
182 public static int getPortletPreferencesesCount() {
183 return getService().getPortletPreferencesesCount();
184 }
185
186
191 public static java.lang.String getOSGiServiceIdentifier() {
192 return getService().getOSGiServiceIdentifier();
193 }
194
195
201 public static <T> java.util.List<T> dynamicQuery(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
203 return getService().dynamicQuery(dynamicQuery);
204 }
205
206
218 public static <T> java.util.List<T> dynamicQuery(
219 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
220 int end) {
221 return getService().dynamicQuery(dynamicQuery, start, end);
222 }
223
224
237 public static <T> java.util.List<T> dynamicQuery(
238 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
239 int end,
240 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
241 return getService()
242 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
243 }
244
245 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences() {
246 return getService().getPortletPreferences();
247 }
248
249 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
250 int ownerType, long plid, java.lang.String portletId) {
251 return getService().getPortletPreferences(ownerType, plid, portletId);
252 }
253
254 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
255 long companyId, long groupId, long ownerId, int ownerType,
256 java.lang.String portletId, boolean privateLayout) {
257 return getService()
258 .getPortletPreferences(companyId, groupId, ownerId,
259 ownerType, portletId, privateLayout);
260 }
261
262 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
263 long ownerId, int ownerType, long plid) {
264 return getService().getPortletPreferences(ownerId, ownerType, plid);
265 }
266
267 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferences(
268 long plid, java.lang.String portletId) {
269 return getService().getPortletPreferences(plid, portletId);
270 }
271
272 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferencesByPlid(
273 long plid) {
274 return getService().getPortletPreferencesByPlid(plid);
275 }
276
277
288 public static java.util.List<com.liferay.portal.kernel.model.PortletPreferences> getPortletPreferenceses(
289 int start, int end) {
290 return getService().getPortletPreferenceses(start, end);
291 }
292
293 public static javax.portlet.PortletPreferences fetchPreferences(
294 com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
295 return getService().fetchPreferences(portletPreferencesIds);
296 }
297
298 public static javax.portlet.PortletPreferences fetchPreferences(
299 long companyId, long ownerId, int ownerType, long plid,
300 java.lang.String portletId) {
301 return getService()
302 .fetchPreferences(companyId, ownerId, ownerType, plid,
303 portletId);
304 }
305
306 public static javax.portlet.PortletPreferences getDefaultPreferences(
307 long companyId, java.lang.String portletId) {
308 return getService().getDefaultPreferences(companyId, portletId);
309 }
310
311 public static javax.portlet.PortletPreferences getPreferences(
312 com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
313 return getService().getPreferences(portletPreferencesIds);
314 }
315
316 public static javax.portlet.PortletPreferences getPreferences(
317 long companyId, long ownerId, int ownerType, long plid,
318 java.lang.String portletId) {
319 return getService()
320 .getPreferences(companyId, ownerId, ownerType, plid,
321 portletId);
322 }
323
324 public static javax.portlet.PortletPreferences getPreferences(
325 long companyId, long ownerId, int ownerType, long plid,
326 java.lang.String portletId, java.lang.String defaultPreferences) {
327 return getService()
328 .getPreferences(companyId, ownerId, ownerType, plid,
329 portletId, defaultPreferences);
330 }
331
332 public static javax.portlet.PortletPreferences getStrictPreferences(
333 com.liferay.portal.kernel.model.PortletPreferencesIds portletPreferencesIds) {
334 return getService().getStrictPreferences(portletPreferencesIds);
335 }
336
337 public static javax.portlet.PortletPreferences getStrictPreferences(
338 long companyId, long ownerId, int ownerType, long plid,
339 java.lang.String portletId) {
340 return getService()
341 .getStrictPreferences(companyId, ownerId, ownerType, plid,
342 portletId);
343 }
344
345
351 public static long dynamicQueryCount(
352 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
353 return getService().dynamicQueryCount(dynamicQuery);
354 }
355
356
363 public static long dynamicQueryCount(
364 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
365 com.liferay.portal.kernel.dao.orm.Projection projection) {
366 return getService().dynamicQueryCount(dynamicQuery, projection);
367 }
368
369 public static long getPortletPreferencesCount(int ownerType,
370 java.lang.String portletId) {
371 return getService().getPortletPreferencesCount(ownerType, portletId);
372 }
373
374 public static long getPortletPreferencesCount(int ownerType, long plid,
375 java.lang.String portletId) {
376 return getService()
377 .getPortletPreferencesCount(ownerType, plid, portletId);
378 }
379
380 public static long getPortletPreferencesCount(long ownerId, int ownerType,
381 java.lang.String portletId, boolean excludeDefaultPreferences) {
382 return getService()
383 .getPortletPreferencesCount(ownerId, ownerType, portletId,
384 excludeDefaultPreferences);
385 }
386
387 public static long getPortletPreferencesCount(long ownerId, int ownerType,
388 long plid, com.liferay.portal.kernel.model.Portlet portlet,
389 boolean excludeDefaultPreferences) {
390 return getService()
391 .getPortletPreferencesCount(ownerId, ownerType, plid,
392 portlet, excludeDefaultPreferences);
393 }
394
395 public static void deletePortletPreferences(long ownerId, int ownerType,
396 long plid) {
397 getService().deletePortletPreferences(ownerId, ownerType, plid);
398 }
399
400 public static void deletePortletPreferences(long ownerId, int ownerType,
401 long plid, java.lang.String portletId)
402 throws com.liferay.portal.kernel.exception.PortalException {
403 getService()
404 .deletePortletPreferences(ownerId, ownerType, plid, portletId);
405 }
406
407 public static void deletePortletPreferencesByPlid(long plid) {
408 getService().deletePortletPreferencesByPlid(plid);
409 }
410
411 public static PortletPreferencesLocalService getService() {
412 if (_service == null) {
413 _service = (PortletPreferencesLocalService)PortalBeanLocatorUtil.locate(PortletPreferencesLocalService.class.getName());
414
415 ReferenceRegistry.registerReference(PortletPreferencesLocalServiceUtil.class,
416 "_service");
417 }
418
419 return _service;
420 }
421
422 private static PortletPreferencesLocalService _service;
423 }