001
014
015 package com.liferay.portal.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 LayoutRevisionLocalServiceUtil {
038
043
044
051 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
052 com.liferay.portal.model.LayoutRevision layoutRevision)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addLayoutRevision(layoutRevision);
055 }
056
057
063 public static com.liferay.portal.model.LayoutRevision createLayoutRevision(
064 long layoutRevisionId) {
065 return getService().createLayoutRevision(layoutRevisionId);
066 }
067
068
076 public static com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
077 long layoutRevisionId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteLayoutRevision(layoutRevisionId);
081 }
082
083
091 public static com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
092 com.liferay.portal.model.LayoutRevision layoutRevision)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService().deleteLayoutRevision(layoutRevision);
096 }
097
098 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099 return getService().dynamicQuery();
100 }
101
102
109 @SuppressWarnings("rawtypes")
110 public static java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().dynamicQuery(dynamicQuery);
114 }
115
116
129 @SuppressWarnings("rawtypes")
130 public static java.util.List dynamicQuery(
131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132 int end) throws com.liferay.portal.kernel.exception.SystemException {
133 return getService().dynamicQuery(dynamicQuery, start, end);
134 }
135
136
150 @SuppressWarnings("rawtypes")
151 public static java.util.List dynamicQuery(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
153 int end,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService()
157 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
158 }
159
160
167 public static long dynamicQueryCount(
168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().dynamicQueryCount(dynamicQuery);
171 }
172
173
181 public static long dynamicQueryCount(
182 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183 com.liferay.portal.kernel.dao.orm.Projection projection)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().dynamicQueryCount(dynamicQuery, projection);
186 }
187
188 public static com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
189 long layoutRevisionId)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getService().fetchLayoutRevision(layoutRevisionId);
192 }
193
194
202 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
203 long layoutRevisionId)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return getService().getLayoutRevision(layoutRevisionId);
207 }
208
209 public static com.liferay.portal.model.PersistedModel getPersistedModel(
210 java.io.Serializable primaryKeyObj)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException {
213 return getService().getPersistedModel(primaryKeyObj);
214 }
215
216
228 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
229 int start, int end)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService().getLayoutRevisions(start, end);
232 }
233
234
240 public static int getLayoutRevisionsCount()
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getService().getLayoutRevisionsCount();
243 }
244
245
252 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
253 com.liferay.portal.model.LayoutRevision layoutRevision)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getService().updateLayoutRevision(layoutRevision);
256 }
257
258
263 public static java.lang.String getBeanIdentifier() {
264 return getService().getBeanIdentifier();
265 }
266
267
272 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
273 getService().setBeanIdentifier(beanIdentifier);
274 }
275
276 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
277 long userId, long layoutSetBranchId, long layoutBranchId,
278 long parentLayoutRevisionId, boolean head, long plid,
279 long portletPreferencesPlid, boolean privateLayout,
280 java.lang.String name, java.lang.String title,
281 java.lang.String description, java.lang.String keywords,
282 java.lang.String robots, java.lang.String typeSettings,
283 boolean iconImage, long iconImageId, java.lang.String themeId,
284 java.lang.String colorSchemeId, java.lang.String wapThemeId,
285 java.lang.String wapColorSchemeId, java.lang.String css,
286 com.liferay.portal.service.ServiceContext serviceContext)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 return getService()
290 .addLayoutRevision(userId, layoutSetBranchId,
291 layoutBranchId, parentLayoutRevisionId, head, plid,
292 portletPreferencesPlid, privateLayout, name, title, description,
293 keywords, robots, typeSettings, iconImage, iconImageId, themeId,
294 colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
295 }
296
297 public static void deleteLayoutLayoutRevisions(long plid)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteLayoutLayoutRevisions(plid);
301 }
302
303 public static void deleteLayoutRevisions(long layoutSetBranchId, long plid)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 getService().deleteLayoutRevisions(layoutSetBranchId, plid);
307 }
308
309 public static void deleteLayoutRevisions(long layoutSetBranchId,
310 long layoutBranchId, long plid)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException {
313 getService()
314 .deleteLayoutRevisions(layoutSetBranchId, layoutBranchId, plid);
315 }
316
317 public static void deleteLayoutSetBranchLayoutRevisions(
318 long layoutSetBranchId)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
322 }
323
324 public static com.liferay.portal.model.LayoutRevision fetchLastLayoutRevision(
325 long plid, boolean head)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService().fetchLastLayoutRevision(plid, head);
328 }
329
330 public static com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
331 long layoutSetBranchId, boolean head, long plid)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService().fetchLayoutRevision(layoutSetBranchId, head, plid);
334 }
335
336 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
337 long layoutSetBranchId, long parentLayoutRevisionId, long plid)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService()
340 .getChildLayoutRevisions(layoutSetBranchId,
341 parentLayoutRevisionId, plid);
342 }
343
344 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
345 long layoutSetBranchId, long parentLayoutRevision, long plid,
346 int start, int end,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getService()
350 .getChildLayoutRevisions(layoutSetBranchId,
351 parentLayoutRevision, plid, start, end, orderByComparator);
352 }
353
354 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
355 long parentLayoutRevision, long plid)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService()
358 .getChildLayoutRevisionsCount(layoutSetBranchId,
359 parentLayoutRevision, plid);
360 }
361
362 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
363 long layoutSetBranchId, long plid, boolean head)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
367 }
368
369 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
370 long layoutSetBranchId, long layoutBranchId, long plid)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException {
373 return getService()
374 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
375 }
376
377 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
378 long plid) throws com.liferay.portal.kernel.exception.SystemException {
379 return getService().getLayoutRevisions(plid);
380 }
381
382 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
383 long layoutSetBranchId, boolean head)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getService().getLayoutRevisions(layoutSetBranchId, head);
386 }
387
388 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
389 long layoutSetBranchId, int status)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getService().getLayoutRevisions(layoutSetBranchId, status);
392 }
393
394 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
395 long layoutSetBranchId, long plid)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getService().getLayoutRevisions(layoutSetBranchId, plid);
398 }
399
400 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
401 long layoutSetBranchId, long plid, int status)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
404 }
405
406 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
407 long layoutSetBranchId, long plid, int start, int end,
408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409 throws com.liferay.portal.kernel.exception.SystemException {
410 return getService()
411 .getLayoutRevisions(layoutSetBranchId, plid, start, end,
412 orderByComparator);
413 }
414
415 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
416 long layoutSetBranchId, long layoutBranchId, long plid, int start,
417 int end,
418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getService()
421 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
422 start, end, orderByComparator);
423 }
424
425 public static int getLayoutRevisionsCount(long layoutSetBranchId,
426 long layoutBranchId, long plid)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getService()
429 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
430 plid);
431 }
432
433 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
434 long userId, long layoutRevisionId, long layoutBranchId,
435 java.lang.String name, java.lang.String title,
436 java.lang.String description, java.lang.String keywords,
437 java.lang.String robots, java.lang.String typeSettings,
438 boolean iconImage, long iconImageId, java.lang.String themeId,
439 java.lang.String colorSchemeId, java.lang.String wapThemeId,
440 java.lang.String wapColorSchemeId, java.lang.String css,
441 com.liferay.portal.service.ServiceContext serviceContext)
442 throws com.liferay.portal.kernel.exception.PortalException,
443 com.liferay.portal.kernel.exception.SystemException {
444 return getService()
445 .updateLayoutRevision(userId, layoutRevisionId,
446 layoutBranchId, name, title, description, keywords, robots,
447 typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
448 wapThemeId, wapColorSchemeId, css, serviceContext);
449 }
450
451 public static com.liferay.portal.model.LayoutRevision updateStatus(
452 long userId, long layoutRevisionId, int status,
453 com.liferay.portal.service.ServiceContext serviceContext)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 return getService()
457 .updateStatus(userId, layoutRevisionId, status,
458 serviceContext);
459 }
460
461 public static LayoutRevisionLocalService getService() {
462 if (_service == null) {
463 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
464
465 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
466 "_service");
467 }
468
469 return _service;
470 }
471
472
475 public void setService(LayoutRevisionLocalService service) {
476 }
477
478 private static LayoutRevisionLocalService _service;
479 }