001
014
015 package com.liferay.portal.kernel.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.kernel.model.LayoutRevision addLayoutRevision(
051 com.liferay.portal.kernel.model.LayoutRevision layoutRevision) {
052 return getService().addLayoutRevision(layoutRevision);
053 }
054
055 public static com.liferay.portal.kernel.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 css,
064 com.liferay.portal.kernel.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 return getService()
067 .addLayoutRevision(userId, layoutSetBranchId,
068 layoutBranchId, parentLayoutRevisionId, head, plid,
069 portletPreferencesPlid, privateLayout, name, title, description,
070 keywords, robots, typeSettings, iconImage, iconImageId, themeId,
071 colorSchemeId, css, serviceContext);
072 }
073
074
080 public static com.liferay.portal.kernel.model.LayoutRevision createLayoutRevision(
081 long layoutRevisionId) {
082 return getService().createLayoutRevision(layoutRevisionId);
083 }
084
085 public static void deleteLayoutLayoutRevisions(long plid)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 getService().deleteLayoutLayoutRevisions(plid);
088 }
089
090
097 public static com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(
098 com.liferay.portal.kernel.model.LayoutRevision layoutRevision)
099 throws com.liferay.portal.kernel.exception.PortalException {
100 return getService().deleteLayoutRevision(layoutRevision);
101 }
102
103
110 public static com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(
111 long layoutRevisionId)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 return getService().deleteLayoutRevision(layoutRevisionId);
114 }
115
116 public static void deleteLayoutRevisions(long layoutSetBranchId,
117 long layoutBranchId, long plid)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService()
120 .deleteLayoutRevisions(layoutSetBranchId, layoutBranchId, plid);
121 }
122
123 public static void deleteLayoutRevisions(long layoutSetBranchId, long plid)
124 throws com.liferay.portal.kernel.exception.PortalException {
125 getService().deleteLayoutRevisions(layoutSetBranchId, plid);
126 }
127
128 public static void deleteLayoutSetBranchLayoutRevisions(
129 long layoutSetBranchId)
130 throws com.liferay.portal.kernel.exception.PortalException {
131 getService().deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
132 }
133
134
137 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
138 com.liferay.portal.kernel.model.PersistedModel persistedModel)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService().deletePersistedModel(persistedModel);
141 }
142
143 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
144 return getService().dynamicQuery();
145 }
146
147
153 public static <T> java.util.List<T> dynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
155 return getService().dynamicQuery(dynamicQuery);
156 }
157
158
170 public static <T> java.util.List<T> dynamicQuery(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
172 int end) {
173 return getService().dynamicQuery(dynamicQuery, start, end);
174 }
175
176
189 public static <T> java.util.List<T> dynamicQuery(
190 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
191 int end,
192 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
193 return getService()
194 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
195 }
196
197
203 public static long dynamicQueryCount(
204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
205 return getService().dynamicQueryCount(dynamicQuery);
206 }
207
208
215 public static long dynamicQueryCount(
216 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
217 com.liferay.portal.kernel.dao.orm.Projection projection) {
218 return getService().dynamicQueryCount(dynamicQuery, projection);
219 }
220
221 public static com.liferay.portal.kernel.model.LayoutRevision fetchLastLayoutRevision(
222 long plid, boolean head) {
223 return getService().fetchLastLayoutRevision(plid, head);
224 }
225
226 public static com.liferay.portal.kernel.model.LayoutRevision fetchLatestLayoutRevision(
227 long layoutSetBranchId, long plid) {
228 return getService().fetchLatestLayoutRevision(layoutSetBranchId, plid);
229 }
230
231 public static com.liferay.portal.kernel.model.LayoutRevision fetchLayoutRevision(
232 long layoutRevisionId) {
233 return getService().fetchLayoutRevision(layoutRevisionId);
234 }
235
236 public static com.liferay.portal.kernel.model.LayoutRevision fetchLayoutRevision(
237 long layoutSetBranchId, boolean head, long plid) {
238 return getService().fetchLayoutRevision(layoutSetBranchId, head, plid);
239 }
240
241 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
242 return getService().getActionableDynamicQuery();
243 }
244
245 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(
246 long layoutSetBranchId, long parentLayoutRevision, long plid,
247 int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator) {
249 return getService()
250 .getChildLayoutRevisions(layoutSetBranchId,
251 parentLayoutRevision, plid, start, end, orderByComparator);
252 }
253
254 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(
255 long layoutSetBranchId, long parentLayoutRevisionId, long plid) {
256 return getService()
257 .getChildLayoutRevisions(layoutSetBranchId,
258 parentLayoutRevisionId, plid);
259 }
260
261 public static int getChildLayoutRevisionsCount(long layoutSetBranchId,
262 long parentLayoutRevision, long plid) {
263 return getService()
264 .getChildLayoutRevisionsCount(layoutSetBranchId,
265 parentLayoutRevision, plid);
266 }
267
268 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
269 return getService().getIndexableActionableDynamicQuery();
270 }
271
272
279 public static com.liferay.portal.kernel.model.LayoutRevision getLayoutRevision(
280 long layoutRevisionId)
281 throws com.liferay.portal.kernel.exception.PortalException {
282 return getService().getLayoutRevision(layoutRevisionId);
283 }
284
285 public static com.liferay.portal.kernel.model.LayoutRevision getLayoutRevision(
286 long layoutSetBranchId, long layoutBranchId, long plid)
287 throws com.liferay.portal.kernel.exception.PortalException {
288 return getService()
289 .getLayoutRevision(layoutSetBranchId, layoutBranchId, plid);
290 }
291
292 public static com.liferay.portal.kernel.model.LayoutRevision getLayoutRevision(
293 long layoutSetBranchId, long plid, boolean head)
294 throws com.liferay.portal.kernel.exception.PortalException {
295 return getService().getLayoutRevision(layoutSetBranchId, plid, head);
296 }
297
298 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
299 long layoutSetBranchId, boolean head) {
300 return getService().getLayoutRevisions(layoutSetBranchId, head);
301 }
302
303 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
304 long layoutSetBranchId, long layoutBranchId, long plid, int start,
305 int end,
306 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator) {
307 return getService()
308 .getLayoutRevisions(layoutSetBranchId, layoutBranchId, plid,
309 start, end, orderByComparator);
310 }
311
312 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
313 long layoutSetBranchId, long plid) {
314 return getService().getLayoutRevisions(layoutSetBranchId, plid);
315 }
316
317 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
318 long layoutSetBranchId, long plid, int start, int end,
319 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator) {
320 return getService()
321 .getLayoutRevisions(layoutSetBranchId, plid, start, end,
322 orderByComparator);
323 }
324
325 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
326 long layoutSetBranchId, long plid, int status) {
327 return getService().getLayoutRevisions(layoutSetBranchId, plid, status);
328 }
329
330 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
331 long layoutSetBranchId, int status) {
332 return getService().getLayoutRevisions(layoutSetBranchId, status);
333 }
334
335 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
336 long plid) {
337 return getService().getLayoutRevisions(plid);
338 }
339
340
351 public static java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getLayoutRevisions(
352 int start, int end) {
353 return getService().getLayoutRevisions(start, end);
354 }
355
356
361 public static int getLayoutRevisionsCount() {
362 return getService().getLayoutRevisionsCount();
363 }
364
365 public static int getLayoutRevisionsCount(long layoutSetBranchId,
366 long layoutBranchId, long plid) {
367 return getService()
368 .getLayoutRevisionsCount(layoutSetBranchId, layoutBranchId,
369 plid);
370 }
371
372
377 public static java.lang.String getOSGiServiceIdentifier() {
378 return getService().getOSGiServiceIdentifier();
379 }
380
381 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
382 java.io.Serializable primaryKeyObj)
383 throws com.liferay.portal.kernel.exception.PortalException {
384 return getService().getPersistedModel(primaryKeyObj);
385 }
386
387
393 public static com.liferay.portal.kernel.model.LayoutRevision updateLayoutRevision(
394 com.liferay.portal.kernel.model.LayoutRevision layoutRevision) {
395 return getService().updateLayoutRevision(layoutRevision);
396 }
397
398 public static com.liferay.portal.kernel.model.LayoutRevision updateLayoutRevision(
399 long userId, long layoutRevisionId, long layoutBranchId,
400 java.lang.String name, java.lang.String title,
401 java.lang.String description, java.lang.String keywords,
402 java.lang.String robots, java.lang.String typeSettings,
403 boolean iconImage, long iconImageId, java.lang.String themeId,
404 java.lang.String colorSchemeId, java.lang.String css,
405 com.liferay.portal.kernel.service.ServiceContext serviceContext)
406 throws com.liferay.portal.kernel.exception.PortalException {
407 return getService()
408 .updateLayoutRevision(userId, layoutRevisionId,
409 layoutBranchId, name, title, description, keywords, robots,
410 typeSettings, iconImage, iconImageId, themeId, colorSchemeId, css,
411 serviceContext);
412 }
413
414 public static com.liferay.portal.kernel.model.LayoutRevision updateStatus(
415 long userId, long layoutRevisionId, int status,
416 com.liferay.portal.kernel.service.ServiceContext serviceContext)
417 throws com.liferay.portal.kernel.exception.PortalException {
418 return getService()
419 .updateStatus(userId, layoutRevisionId, status,
420 serviceContext);
421 }
422
423 public static LayoutRevisionLocalService getService() {
424 if (_service == null) {
425 _service = (LayoutRevisionLocalService)PortalBeanLocatorUtil.locate(LayoutRevisionLocalService.class.getName());
426
427 ReferenceRegistry.registerReference(LayoutRevisionLocalServiceUtil.class,
428 "_service");
429 }
430
431 return _service;
432 }
433
434 private static LayoutRevisionLocalService _service;
435 }