001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class LayoutRevisionLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
049 com.liferay.portal.model.LayoutRevision layoutRevision)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addLayoutRevision(layoutRevision);
052 }
053
054
060 public static com.liferay.portal.model.LayoutRevision createLayoutRevision(
061 long layoutRevisionId) {
062 return getService().createLayoutRevision(layoutRevisionId);
063 }
064
065
072 public static void deleteLayoutRevision(long layoutRevisionId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteLayoutRevision(layoutRevisionId);
076 }
077
078
085 public static void deleteLayoutRevision(
086 com.liferay.portal.model.LayoutRevision layoutRevision)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteLayoutRevision(layoutRevision);
090 }
091
092
099 @SuppressWarnings("rawtypes")
100 public static java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().dynamicQuery(dynamicQuery);
104 }
105
106
119 @SuppressWarnings("rawtypes")
120 public static java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException {
123 return getService().dynamicQuery(dynamicQuery, start, end);
124 }
125
126
140 @SuppressWarnings("rawtypes")
141 public static java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
148 }
149
150
157 public static long dynamicQueryCount(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().dynamicQueryCount(dynamicQuery);
161 }
162
163 public static com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
164 long layoutRevisionId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().fetchLayoutRevision(layoutRevisionId);
167 }
168
169
177 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
178 long layoutRevisionId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getLayoutRevision(layoutRevisionId);
182 }
183
184 public static com.liferay.portal.model.PersistedModel getPersistedModel(
185 java.io.Serializable primaryKeyObj)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPersistedModel(primaryKeyObj);
189 }
190
191
203 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getLayoutRevisions(start, end);
207 }
208
209
215 public static int getLayoutRevisionsCount()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getLayoutRevisionsCount();
218 }
219
220
227 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
228 com.liferay.portal.model.LayoutRevision layoutRevision)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().updateLayoutRevision(layoutRevision);
231 }
232
233
241 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
242 com.liferay.portal.model.LayoutRevision layoutRevision, boolean merge)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updateLayoutRevision(layoutRevision, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
266 long userId, long layoutSetBranchId, long layoutBranchId,
267 long parentLayoutRevisionId, boolean head, long plid,
268 long portletPreferencesPlid, boolean privateLayout,
269 java.lang.String name, java.lang.String title,
270 java.lang.String description, java.lang.String keywords,
271 java.lang.String robots, java.lang.String typeSettings,
272 boolean iconImage, long iconImageId, java.lang.String themeId,
273 java.lang.String colorSchemeId, java.lang.String wapThemeId,
274 java.lang.String wapColorSchemeId, java.lang.String css,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .addLayoutRevision(userId, layoutSetBranchId,
280 layoutBranchId, parentLayoutRevisionId, head, plid,
281 portletPreferencesPlid, privateLayout, name, title, description,
282 keywords, robots, typeSettings, iconImage, iconImageId, themeId,
283 colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
284 }
285
286 public static void deleteLayoutLayoutRevisions(long plid)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 getService().deleteLayoutLayoutRevisions(plid);
290 }
291
292 public static void deleteLayoutRevisions(long layoutSetBranchId, long plid)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 getService().deleteLayoutRevisions(layoutSetBranchId, plid);
296 }
297
298 public static void deleteLayoutRevisions(long layoutSetBranchId,
299 long layoutBranchId, long plid)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 getService()
303 .deleteLayoutRevisions(layoutSetBranchId, layoutBranchId, plid);
304 }
305
306 public static void deleteLayoutSetBranchLayoutRevisions(
307 long layoutSetBranchId)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException {
310 getService().deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
311 }
312
313 public static com.liferay.portal.model.LayoutRevision fetchLastLayoutRevision(
314 long plid, boolean head)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().fetchLastLayoutRevision(plid, head);
317 }
318
319 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
320 long layoutSetBranchId, long parentLayoutRevisionId, long plid)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getService()
323 .getChildLayoutRevisions(layoutSetBranchId,
324 parentLayoutRevisionId, plid);
325 }
326
327 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
328 long layoutSetBranchId, long parentLayoutRevision, long plid,
329 int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService()
333 .getChildLayoutRevisions(layoutSetBranchId,
334 parentLayoutRevision, plid, start, end, orderByComparator);
335 }
336
337 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
338 long parentLayoutRevision, long plid)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService()
341 .getChildLayoutRevisionsCount(layoutSetBranchId,
342 parentLayoutRevision, plid);
343 }
344
345 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
346 long layoutSetBranchId, long plid, boolean head)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
350 }
351
352 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
353 long layoutSetBranchId, long layoutBranchId, long plid)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException {
356 return getService()
357 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
358 }
359
360 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
361 long plid) throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().getLayoutRevisions(plid);
363 }
364
365 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
366 long layoutSetBranchId, boolean head)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 return getService().getLayoutRevisions(layoutSetBranchId, head);
369 }
370
371 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
372 long layoutSetBranchId, int status)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService().getLayoutRevisions(layoutSetBranchId, status);
375 }
376
377 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
378 long layoutSetBranchId, long plid)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getService().getLayoutRevisions(layoutSetBranchId, plid);
381 }
382
383 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
384 long layoutSetBranchId, long plid, int status)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
387 }
388
389 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
390 long layoutSetBranchId, long layoutBranchId, long plid, int start,
391 int end,
392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getService()
395 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
396 start, end, orderByComparator);
397 }
398
399 public static int getLayoutRevisionsCount(long layoutSetBranchId,
400 long layoutBranchId, long plid)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return getService()
403 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
404 plid);
405 }
406
407 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
408 long userId, long layoutRevisionId, long layoutBranchId,
409 java.lang.String name, java.lang.String title,
410 java.lang.String description, java.lang.String keywords,
411 java.lang.String robots, java.lang.String typeSettings,
412 boolean iconImage, long iconImageId, java.lang.String themeId,
413 java.lang.String colorSchemeId, java.lang.String wapThemeId,
414 java.lang.String wapColorSchemeId, java.lang.String css,
415 com.liferay.portal.service.ServiceContext serviceContext)
416 throws com.liferay.portal.kernel.exception.PortalException,
417 com.liferay.portal.kernel.exception.SystemException {
418 return getService()
419 .updateLayoutRevision(userId, layoutRevisionId,
420 layoutBranchId, name, title, description, keywords, robots,
421 typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
422 wapThemeId, wapColorSchemeId, css, serviceContext);
423 }
424
425 public static com.liferay.portal.model.LayoutRevision updateStatus(
426 long userId, long layoutRevisionId, int status,
427 com.liferay.portal.service.ServiceContext serviceContext)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 return getService()
431 .updateStatus(userId, layoutRevisionId, status,
432 serviceContext);
433 }
434
435 public static LayoutRevisionLocalService getService() {
436 if (_service == null) {
437 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
438
439 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
440 "_service");
441 MethodCache.remove(LayoutRevisionLocalService.class);
442 }
443
444 return _service;
445 }
446
447 public void setService(LayoutRevisionLocalService service) {
448 MethodCache.remove(LayoutRevisionLocalService.class);
449
450 _service = service;
451
452 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
453 "_service");
454 MethodCache.remove(LayoutRevisionLocalService.class);
455 }
456
457 private static LayoutRevisionLocalService _service;
458 }