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
050 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
051 com.liferay.portal.model.LayoutRevision layoutRevision) {
052 return getService().addLayoutRevision(layoutRevision);
053 }
054
055 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
056 long userId, long layoutSetBranchId, long layoutBranchId,
057 long parentLayoutRevisionId, boolean head, long plid,
058 long portletPreferencesPlid, boolean privateLayout,
059 java.lang.String name, java.lang.String title,
060 java.lang.String description, java.lang.String keywords,
061 java.lang.String robots, java.lang.String typeSettings,
062 boolean iconImage, long iconImageId, java.lang.String themeId,
063 java.lang.String colorSchemeId, java.lang.String wapThemeId,
064 java.lang.String wapColorSchemeId, java.lang.String css,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService()
068 .addLayoutRevision(userId, layoutSetBranchId,
069 layoutBranchId, parentLayoutRevisionId, head, plid,
070 portletPreferencesPlid, privateLayout, name, title, description,
071 keywords, robots, typeSettings, iconImage, iconImageId, themeId,
072 colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
073 }
074
075
081 public static com.liferay.portal.model.LayoutRevision createLayoutRevision(
082 long layoutRevisionId) {
083 return getService().createLayoutRevision(layoutRevisionId);
084 }
085
086 public static void deleteLayoutLayoutRevisions(long plid)
087 throws com.liferay.portal.kernel.exception.PortalException {
088 getService().deleteLayoutLayoutRevisions(plid);
089 }
090
091
098 public static com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
099 com.liferay.portal.model.LayoutRevision layoutRevision)
100 throws com.liferay.portal.kernel.exception.PortalException {
101 return getService().deleteLayoutRevision(layoutRevision);
102 }
103
104
111 public static com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
112 long layoutRevisionId)
113 throws com.liferay.portal.kernel.exception.PortalException {
114 return getService().deleteLayoutRevision(layoutRevisionId);
115 }
116
117 public static void deleteLayoutRevisions(long layoutSetBranchId,
118 long layoutBranchId, long plid)
119 throws com.liferay.portal.kernel.exception.PortalException {
120 getService()
121 .deleteLayoutRevisions(layoutSetBranchId, layoutBranchId, plid);
122 }
123
124 public static void deleteLayoutRevisions(long layoutSetBranchId, long plid)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 getService().deleteLayoutRevisions(layoutSetBranchId, plid);
127 }
128
129 public static void deleteLayoutSetBranchLayoutRevisions(
130 long layoutSetBranchId)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 getService().deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
133 }
134
135
138 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
139 com.liferay.portal.model.PersistedModel persistedModel)
140 throws com.liferay.portal.kernel.exception.PortalException {
141 return getService().deletePersistedModel(persistedModel);
142 }
143
144 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
145 return getService().dynamicQuery();
146 }
147
148
154 public static <T> java.util.List<T> dynamicQuery(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
156 return getService().dynamicQuery(dynamicQuery);
157 }
158
159
171 public static <T> java.util.List<T> dynamicQuery(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
173 int end) {
174 return getService().dynamicQuery(dynamicQuery, start, end);
175 }
176
177
190 public static <T> java.util.List<T> dynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192 int end,
193 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
194 return getService()
195 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
196 }
197
198
204 public static long dynamicQueryCount(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
206 return getService().dynamicQueryCount(dynamicQuery);
207 }
208
209
216 public static long dynamicQueryCount(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
218 com.liferay.portal.kernel.dao.orm.Projection projection) {
219 return getService().dynamicQueryCount(dynamicQuery, projection);
220 }
221
222 public static com.liferay.portal.model.LayoutRevision fetchLastLayoutRevision(
223 long plid, boolean head) {
224 return getService().fetchLastLayoutRevision(plid, head);
225 }
226
227 public static com.liferay.portal.model.LayoutRevision fetchLatestLayoutRevision(
228 long layoutSetBranchId, long plid) {
229 return getService().fetchLatestLayoutRevision(layoutSetBranchId, plid);
230 }
231
232 public static com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
233 long layoutRevisionId) {
234 return getService().fetchLayoutRevision(layoutRevisionId);
235 }
236
237 public static com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
238 long layoutSetBranchId, boolean head, long plid) {
239 return getService().fetchLayoutRevision(layoutSetBranchId, head, plid);
240 }
241
242 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
243 return getService().getActionableDynamicQuery();
244 }
245
246
251 public static java.lang.String getBeanIdentifier() {
252 return getService().getBeanIdentifier();
253 }
254
255 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
256 long layoutSetBranchId, long parentLayoutRevision, long plid,
257 int start, int end,
258 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
259 return getService()
260 .getChildLayoutRevisions(layoutSetBranchId,
261 parentLayoutRevision, plid, start, end, orderByComparator);
262 }
263
264 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
265 long layoutSetBranchId, long parentLayoutRevisionId, long plid) {
266 return getService()
267 .getChildLayoutRevisions(layoutSetBranchId,
268 parentLayoutRevisionId, plid);
269 }
270
271 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
272 long parentLayoutRevision, long plid) {
273 return getService()
274 .getChildLayoutRevisionsCount(layoutSetBranchId,
275 parentLayoutRevision, plid);
276 }
277
278
285 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
286 long layoutRevisionId)
287 throws com.liferay.portal.kernel.exception.PortalException {
288 return getService().getLayoutRevision(layoutRevisionId);
289 }
290
291 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
292 long layoutSetBranchId, long layoutBranchId, long plid)
293 throws com.liferay.portal.kernel.exception.PortalException {
294 return getService()
295 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
296 }
297
298 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
299 long layoutSetBranchId, long plid, boolean head)
300 throws com.liferay.portal.kernel.exception.PortalException {
301 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
302 }
303
304 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
305 long layoutSetBranchId, boolean head) {
306 return getService().getLayoutRevisions(layoutSetBranchId, head);
307 }
308
309 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
310 long layoutSetBranchId, long layoutBranchId, long plid, int start,
311 int end,
312 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
313 return getService()
314 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
315 start, end, orderByComparator);
316 }
317
318 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
319 long layoutSetBranchId, long plid) {
320 return getService().getLayoutRevisions(layoutSetBranchId, plid);
321 }
322
323 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
324 long layoutSetBranchId, long plid, int start, int end,
325 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
326 return getService()
327 .getLayoutRevisions(layoutSetBranchId, plid, start, end,
328 orderByComparator);
329 }
330
331 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
332 long layoutSetBranchId, long plid, int status) {
333 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
334 }
335
336 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
337 long layoutSetBranchId, int status) {
338 return getService().getLayoutRevisions(layoutSetBranchId, status);
339 }
340
341 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
342 long plid) {
343 return getService().getLayoutRevisions(plid);
344 }
345
346
357 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
358 int start, int end) {
359 return getService().getLayoutRevisions(start, end);
360 }
361
362
367 public static int getLayoutRevisionsCount() {
368 return getService().getLayoutRevisionsCount();
369 }
370
371 public static int getLayoutRevisionsCount(long layoutSetBranchId,
372 long layoutBranchId, long plid) {
373 return getService()
374 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
375 plid);
376 }
377
378 public static com.liferay.portal.model.PersistedModel getPersistedModel(
379 java.io.Serializable primaryKeyObj)
380 throws com.liferay.portal.kernel.exception.PortalException {
381 return getService().getPersistedModel(primaryKeyObj);
382 }
383
384
389 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
390 getService().setBeanIdentifier(beanIdentifier);
391 }
392
393
399 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
400 com.liferay.portal.model.LayoutRevision layoutRevision) {
401 return getService().updateLayoutRevision(layoutRevision);
402 }
403
404 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
405 long userId, long layoutRevisionId, long layoutBranchId,
406 java.lang.String name, java.lang.String title,
407 java.lang.String description, java.lang.String keywords,
408 java.lang.String robots, java.lang.String typeSettings,
409 boolean iconImage, long iconImageId, java.lang.String themeId,
410 java.lang.String colorSchemeId, java.lang.String wapThemeId,
411 java.lang.String wapColorSchemeId, java.lang.String css,
412 com.liferay.portal.service.ServiceContext serviceContext)
413 throws com.liferay.portal.kernel.exception.PortalException {
414 return getService()
415 .updateLayoutRevision(userId, layoutRevisionId,
416 layoutBranchId, name, title, description, keywords, robots,
417 typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
418 wapThemeId, wapColorSchemeId, css, serviceContext);
419 }
420
421 public static com.liferay.portal.model.LayoutRevision updateStatus(
422 long userId, long layoutRevisionId, int status,
423 com.liferay.portal.service.ServiceContext serviceContext)
424 throws com.liferay.portal.kernel.exception.PortalException {
425 return getService()
426 .updateStatus(userId, layoutRevisionId, status,
427 serviceContext);
428 }
429
430 public static LayoutRevisionLocalService getService() {
431 if (_service == null) {
432 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
433
434 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
435 "_service");
436 }
437
438 return _service;
439 }
440
441
444 @Deprecated
445 public void setService(LayoutRevisionLocalService service) {
446 }
447
448 private static LayoutRevisionLocalService _service;
449 }