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 boolean privateLayout, java.lang.String name, java.lang.String title,
269 java.lang.String description, java.lang.String keywords,
270 java.lang.String robots, java.lang.String typeSettings,
271 boolean iconImage, long iconImageId, java.lang.String themeId,
272 java.lang.String colorSchemeId, java.lang.String wapThemeId,
273 java.lang.String wapColorSchemeId, java.lang.String css,
274 com.liferay.portal.service.ServiceContext serviceContext)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException {
277 return getService()
278 .addLayoutRevision(userId, layoutSetBranchId,
279 layoutBranchId, parentLayoutRevisionId, head, plid, privateLayout,
280 name, title, description, keywords, robots, typeSettings,
281 iconImage, iconImageId, themeId, colorSchemeId, wapThemeId,
282 wapColorSchemeId, css, serviceContext);
283 }
284
285 public static void deleteLayoutLayoutRevisions(long plid)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteLayoutLayoutRevisions(plid);
289 }
290
291 public static void deleteLayoutRevisions(long layoutSetBranchId, long plid)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteLayoutRevisions(layoutSetBranchId, plid);
295 }
296
297 public static void deleteLayoutRevisions(long layoutSetBranchId,
298 long layoutBranchId, long plid)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 getService()
302 .deleteLayoutRevisions(layoutSetBranchId, layoutBranchId, plid);
303 }
304
305 public static void deleteLayoutSetBranchLayoutRevisions(
306 long layoutSetBranchId)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
310 }
311
312 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
313 long layoutSetBranchId, long parentLayoutRevisionId, long plid)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getService()
316 .getChildLayoutRevisions(layoutSetBranchId,
317 parentLayoutRevisionId, plid);
318 }
319
320 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
321 long layoutSetBranchId, long parentLayoutRevision, long plid,
322 int start, int end,
323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getService()
326 .getChildLayoutRevisions(layoutSetBranchId,
327 parentLayoutRevision, plid, start, end, orderByComparator);
328 }
329
330 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
331 long parentLayoutRevision, long plid)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService()
334 .getChildLayoutRevisionsCount(layoutSetBranchId,
335 parentLayoutRevision, plid);
336 }
337
338 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
339 long layoutSetBranchId, long plid, boolean head)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException {
342 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
343 }
344
345 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
346 long layoutSetBranchId, long layoutBranchId, long plid)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 return getService()
350 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
351 }
352
353 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
354 long plid) throws com.liferay.portal.kernel.exception.SystemException {
355 return getService().getLayoutRevisions(plid);
356 }
357
358 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
359 long layoutSetBranchId, boolean head)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getService().getLayoutRevisions(layoutSetBranchId, head);
362 }
363
364 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
365 long layoutSetBranchId, int status)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService().getLayoutRevisions(layoutSetBranchId, status);
368 }
369
370 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
371 long layoutSetBranchId, long plid)
372 throws com.liferay.portal.kernel.exception.SystemException {
373 return getService().getLayoutRevisions(layoutSetBranchId, plid);
374 }
375
376 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
377 long layoutSetBranchId, long plid, int status)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
380 }
381
382 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
383 long layoutSetBranchId, long layoutBranchId, long plid, int start,
384 int end,
385 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getService()
388 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
389 start, end, orderByComparator);
390 }
391
392 public static int getLayoutRevisionsCount(long layoutSetBranchId,
393 long layoutBranchId, long plid)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getService()
396 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
397 plid);
398 }
399
400 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
401 long userId, long layoutRevisionId, long layoutBranchId,
402 java.lang.String name, java.lang.String title,
403 java.lang.String description, java.lang.String keywords,
404 java.lang.String robots, java.lang.String typeSettings,
405 boolean iconImage, long iconImageId, java.lang.String themeId,
406 java.lang.String colorSchemeId, java.lang.String wapThemeId,
407 java.lang.String wapColorSchemeId, java.lang.String css,
408 com.liferay.portal.service.ServiceContext serviceContext)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException {
411 return getService()
412 .updateLayoutRevision(userId, layoutRevisionId,
413 layoutBranchId, name, title, description, keywords, robots,
414 typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
415 wapThemeId, wapColorSchemeId, css, serviceContext);
416 }
417
418 public static com.liferay.portal.model.LayoutRevision updateStatus(
419 long userId, long layoutRevisionId, int status,
420 com.liferay.portal.service.ServiceContext serviceContext)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException {
423 return getService()
424 .updateStatus(userId, layoutRevisionId, status,
425 serviceContext);
426 }
427
428 public static LayoutRevisionLocalService getService() {
429 if (_service == null) {
430 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
431
432 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
433 "_service");
434 MethodCache.remove(LayoutRevisionLocalService.class);
435 }
436
437 return _service;
438 }
439
440 public void setService(LayoutRevisionLocalService service) {
441 MethodCache.remove(LayoutRevisionLocalService.class);
442
443 _service = service;
444
445 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
446 "_service");
447 MethodCache.remove(LayoutRevisionLocalService.class);
448 }
449
450 private static LayoutRevisionLocalService _service;
451 }