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 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
247 long layoutSetBranchId, long parentLayoutRevision, long plid,
248 int start, int end,
249 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
250 return getService()
251 .getChildLayoutRevisions(layoutSetBranchId,
252 parentLayoutRevision, plid, start, end, orderByComparator);
253 }
254
255 public static java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
256 long layoutSetBranchId, long parentLayoutRevisionId, long plid) {
257 return getService()
258 .getChildLayoutRevisions(layoutSetBranchId,
259 parentLayoutRevisionId, plid);
260 }
261
262 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
263 long parentLayoutRevision, long plid) {
264 return getService()
265 .getChildLayoutRevisionsCount(layoutSetBranchId,
266 parentLayoutRevision, plid);
267 }
268
269 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
270 return getService().getIndexableActionableDynamicQuery();
271 }
272
273
280 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
281 long layoutRevisionId)
282 throws com.liferay.portal.kernel.exception.PortalException {
283 return getService().getLayoutRevision(layoutRevisionId);
284 }
285
286 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
287 long layoutSetBranchId, long layoutBranchId, long plid)
288 throws com.liferay.portal.kernel.exception.PortalException {
289 return getService()
290 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
291 }
292
293 public static com.liferay.portal.model.LayoutRevision getLayoutRevision(
294 long layoutSetBranchId, long plid, boolean head)
295 throws com.liferay.portal.kernel.exception.PortalException {
296 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
297 }
298
299 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
300 long layoutSetBranchId, boolean head) {
301 return getService().getLayoutRevisions(layoutSetBranchId, head);
302 }
303
304 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
305 long layoutSetBranchId, long layoutBranchId, long plid, int start,
306 int end,
307 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
308 return getService()
309 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
310 start, end, orderByComparator);
311 }
312
313 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
314 long layoutSetBranchId, long plid) {
315 return getService().getLayoutRevisions(layoutSetBranchId, plid);
316 }
317
318 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
319 long layoutSetBranchId, long plid, int start, int end,
320 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
321 return getService()
322 .getLayoutRevisions(layoutSetBranchId, plid, start, end,
323 orderByComparator);
324 }
325
326 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
327 long layoutSetBranchId, long plid, int status) {
328 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
329 }
330
331 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
332 long layoutSetBranchId, int status) {
333 return getService().getLayoutRevisions(layoutSetBranchId, status);
334 }
335
336 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
337 long plid) {
338 return getService().getLayoutRevisions(plid);
339 }
340
341
352 public static java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
353 int start, int end) {
354 return getService().getLayoutRevisions(start, end);
355 }
356
357
362 public static int getLayoutRevisionsCount() {
363 return getService().getLayoutRevisionsCount();
364 }
365
366 public static int getLayoutRevisionsCount(long layoutSetBranchId,
367 long layoutBranchId, long plid) {
368 return getService()
369 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
370 plid);
371 }
372
373
378 public static java.lang.String getOSGiServiceIdentifier() {
379 return getService().getOSGiServiceIdentifier();
380 }
381
382 public static com.liferay.portal.model.PersistedModel getPersistedModel(
383 java.io.Serializable primaryKeyObj)
384 throws com.liferay.portal.kernel.exception.PortalException {
385 return getService().getPersistedModel(primaryKeyObj);
386 }
387
388
394 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
395 com.liferay.portal.model.LayoutRevision layoutRevision) {
396 return getService().updateLayoutRevision(layoutRevision);
397 }
398
399 public static com.liferay.portal.model.LayoutRevision updateLayoutRevision(
400 long userId, long layoutRevisionId, long layoutBranchId,
401 java.lang.String name, java.lang.String title,
402 java.lang.String description, java.lang.String keywords,
403 java.lang.String robots, java.lang.String typeSettings,
404 boolean iconImage, long iconImageId, java.lang.String themeId,
405 java.lang.String colorSchemeId, java.lang.String wapThemeId,
406 java.lang.String wapColorSchemeId, java.lang.String css,
407 com.liferay.portal.service.ServiceContext serviceContext)
408 throws com.liferay.portal.kernel.exception.PortalException {
409 return getService()
410 .updateLayoutRevision(userId, layoutRevisionId,
411 layoutBranchId, name, title, description, keywords, robots,
412 typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
413 wapThemeId, wapColorSchemeId, css, serviceContext);
414 }
415
416 public static com.liferay.portal.model.LayoutRevision updateStatus(
417 long userId, long layoutRevisionId, int status,
418 com.liferay.portal.service.ServiceContext serviceContext)
419 throws com.liferay.portal.kernel.exception.PortalException {
420 return getService()
421 .updateStatus(userId, layoutRevisionId, status,
422 serviceContext);
423 }
424
425 public static LayoutRevisionLocalService getService() {
426 if (_service == null) {
427 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
428
429 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
430 "_service");
431 }
432
433 return _service;
434 }
435
436 private static LayoutRevisionLocalService _service;
437 }