1
22
23 package com.liferay.portal.service;
24
25
26
47 public class LayoutLocalServiceUtil {
48 public static com.liferay.portal.model.Layout addLayout(
49 com.liferay.portal.model.Layout layout)
50 throws com.liferay.portal.SystemException {
51 return getService().addLayout(layout);
52 }
53
54 public static com.liferay.portal.model.Layout createLayout(long plid) {
55 return getService().createLayout(plid);
56 }
57
58 public static void deleteLayout(long plid)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteLayout(plid);
62 }
63
64 public static void deleteLayout(com.liferay.portal.model.Layout layout)
65 throws com.liferay.portal.SystemException {
66 getService().deleteLayout(layout);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end) throws com.liferay.portal.SystemException {
78 return getService().dynamicQuery(dynamicQuery, start, end);
79 }
80
81 public static com.liferay.portal.model.Layout getLayout(long plid)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getLayout(plid);
85 }
86
87 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getLayouts(start, end);
90 }
91
92 public static int getLayoutsCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getLayoutsCount();
95 }
96
97 public static com.liferay.portal.model.Layout updateLayout(
98 com.liferay.portal.model.Layout layout)
99 throws com.liferay.portal.SystemException {
100 return getService().updateLayout(layout);
101 }
102
103 public static com.liferay.portal.model.Layout addLayout(long userId,
104 long groupId, boolean privateLayout, long parentLayoutId,
105 java.lang.String name, java.lang.String title,
106 java.lang.String description, java.lang.String type, boolean hidden,
107 java.lang.String friendlyURL)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException {
110 return getService()
111 .addLayout(userId, groupId, privateLayout, parentLayoutId,
112 name, title, description, type, hidden, friendlyURL);
113 }
114
115 public static com.liferay.portal.model.Layout addLayout(long userId,
116 long groupId, boolean privateLayout, long parentLayoutId,
117 java.util.Map<java.util.Locale, String> localeNamesMap,
118 java.util.Map<java.util.Locale, String> localeTitlesMap,
119 java.lang.String description, java.lang.String type, boolean hidden,
120 java.lang.String friendlyURL)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return getService()
124 .addLayout(userId, groupId, privateLayout, parentLayoutId,
125 localeNamesMap, localeTitlesMap, description, type, hidden,
126 friendlyURL);
127 }
128
129 public static com.liferay.portal.model.Layout addLayout(long userId,
130 long groupId, boolean privateLayout, long parentLayoutId,
131 java.lang.String name, java.lang.String title,
132 java.lang.String description, java.lang.String type, boolean hidden,
133 java.lang.String friendlyURL, long dlFolderId)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addLayout(userId, groupId, privateLayout, parentLayoutId,
138 name, title, description, type, hidden, friendlyURL, dlFolderId);
139 }
140
141 public static com.liferay.portal.model.Layout addLayout(long userId,
142 long groupId, boolean privateLayout, long parentLayoutId,
143 java.util.Map<java.util.Locale, String> localeNamesMap,
144 java.util.Map<java.util.Locale, String> localeTitlesMap,
145 java.lang.String description, java.lang.String type, boolean hidden,
146 java.lang.String friendlyURL, long dlFolderId)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 return getService()
150 .addLayout(userId, groupId, privateLayout, parentLayoutId,
151 localeNamesMap, localeTitlesMap, description, type, hidden,
152 friendlyURL, dlFolderId);
153 }
154
155 public static void deleteLayout(long groupId, boolean privateLayout,
156 long layoutId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 getService().deleteLayout(groupId, privateLayout, layoutId);
160 }
161
162 public static void deleteLayout(com.liferay.portal.model.Layout layout,
163 boolean updateLayoutSet)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 getService().deleteLayout(layout, updateLayoutSet);
167 }
168
169 public static void deleteLayouts(long groupId, boolean privateLayout)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 getService().deleteLayouts(groupId, privateLayout);
173 }
174
175 public static byte[] exportLayouts(long groupId, boolean privateLayout,
176 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
177 java.util.Date endDate)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException {
180 return getService()
181 .exportLayouts(groupId, privateLayout, parameterMap,
182 startDate, endDate);
183 }
184
185 public static byte[] exportLayouts(long groupId, boolean privateLayout,
186 long[] layoutIds, java.util.Map<String, String[]> parameterMap,
187 java.util.Date startDate, java.util.Date endDate)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 return getService()
191 .exportLayouts(groupId, privateLayout, layoutIds,
192 parameterMap, startDate, endDate);
193 }
194
195 public static com.liferay.portal.kernel.io.FileCacheOutputStream exportLayoutsAsStream(
196 long groupId, boolean privateLayout, long[] layoutIds,
197 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
198 java.util.Date endDate)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 return getService()
202 .exportLayoutsAsStream(groupId, privateLayout, layoutIds,
203 parameterMap, startDate, endDate);
204 }
205
206 public static byte[] exportPortletInfo(long plid,
207 java.lang.String portletId,
208 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
209 java.util.Date endDate)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 return getService()
213 .exportPortletInfo(plid, portletId, parameterMap, startDate,
214 endDate);
215 }
216
217 public static com.liferay.portal.kernel.io.FileCacheOutputStream exportPortletInfoAsStream(
218 long plid, java.lang.String portletId,
219 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
220 java.util.Date endDate)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 return getService()
224 .exportPortletInfoAsStream(plid, portletId, parameterMap,
225 startDate, endDate);
226 }
227
228 public static long getDefaultPlid(long groupId)
229 throws com.liferay.portal.SystemException {
230 return getService().getDefaultPlid(groupId);
231 }
232
233 public static long getDefaultPlid(long groupId, boolean privateLayout)
234 throws com.liferay.portal.SystemException {
235 return getService().getDefaultPlid(groupId, privateLayout);
236 }
237
238 public static long getDefaultPlid(long groupId, boolean privateLayout,
239 java.lang.String portletId) throws com.liferay.portal.SystemException {
240 return getService().getDefaultPlid(groupId, privateLayout, portletId);
241 }
242
243 public static com.liferay.portal.model.Layout getDLFolderLayout(
244 long dlFolderId)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 return getService().getDLFolderLayout(dlFolderId);
248 }
249
250 public static com.liferay.portal.model.Layout getFriendlyURLLayout(
251 long groupId, boolean privateLayout, java.lang.String friendlyURL)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 return getService()
255 .getFriendlyURLLayout(groupId, privateLayout, friendlyURL);
256 }
257
258 public static com.liferay.portal.model.Layout getLayout(long groupId,
259 boolean privateLayout, long layoutId)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException {
262 return getService().getLayout(groupId, privateLayout, layoutId);
263 }
264
265 public static com.liferay.portal.model.Layout getLayoutByIconImageId(
266 long iconImageId)
267 throws com.liferay.portal.PortalException,
268 com.liferay.portal.SystemException {
269 return getService().getLayoutByIconImageId(iconImageId);
270 }
271
272 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
273 long groupId, boolean privateLayout)
274 throws com.liferay.portal.SystemException {
275 return getService().getLayouts(groupId, privateLayout);
276 }
277
278 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
279 long groupId, boolean privateLayout, long parentLayoutId)
280 throws com.liferay.portal.SystemException {
281 return getService().getLayouts(groupId, privateLayout, parentLayoutId);
282 }
283
284 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
285 long groupId, boolean privateLayout, java.lang.String type)
286 throws com.liferay.portal.SystemException {
287 return getService().getLayouts(groupId, privateLayout, type);
288 }
289
290 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
291 long groupId, boolean privateLayout, long parentLayoutId, int start,
292 int end) throws com.liferay.portal.SystemException {
293 return getService()
294 .getLayouts(groupId, privateLayout, parentLayoutId, start,
295 end);
296 }
297
298 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
299 long groupId, boolean privateLayout, long[] layoutIds)
300 throws com.liferay.portal.PortalException,
301 com.liferay.portal.SystemException {
302 return getService().getLayouts(groupId, privateLayout, layoutIds);
303 }
304
305 public static com.liferay.portal.model.LayoutReference[] getLayouts(
306 long companyId, java.lang.String portletId, java.lang.String prefsKey,
307 java.lang.String prefsValue) throws com.liferay.portal.SystemException {
308 return getService()
309 .getLayouts(companyId, portletId, prefsKey, prefsValue);
310 }
311
312 public static long getNextLayoutId(long groupId, boolean privateLayout)
313 throws com.liferay.portal.SystemException {
314 return getService().getNextLayoutId(groupId, privateLayout);
315 }
316
317 public static java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
318 throws com.liferay.portal.SystemException {
319 return getService().getNullFriendlyURLLayouts();
320 }
321
322 public static void importLayouts(long userId, long groupId,
323 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
324 java.io.File file)
325 throws com.liferay.portal.PortalException,
326 com.liferay.portal.SystemException {
327 getService()
328 .importLayouts(userId, groupId, privateLayout, parameterMap, file);
329 }
330
331 public static void importLayouts(long userId, long groupId,
332 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
333 byte[] bytes)
334 throws com.liferay.portal.PortalException,
335 com.liferay.portal.SystemException {
336 getService()
337 .importLayouts(userId, groupId, privateLayout, parameterMap, bytes);
338 }
339
340 public static void importLayouts(long userId, long groupId,
341 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
342 java.io.InputStream is)
343 throws com.liferay.portal.PortalException,
344 com.liferay.portal.SystemException {
345 getService()
346 .importLayouts(userId, groupId, privateLayout, parameterMap, is);
347 }
348
349 public static void importPortletInfo(long userId, long plid,
350 java.lang.String portletId,
351 java.util.Map<String, String[]> parameterMap, java.io.File file)
352 throws com.liferay.portal.PortalException,
353 com.liferay.portal.SystemException {
354 getService()
355 .importPortletInfo(userId, plid, portletId, parameterMap, file);
356 }
357
358 public static void importPortletInfo(long userId, long plid,
359 java.lang.String portletId,
360 java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 getService().importPortletInfo(userId, plid, portletId, parameterMap, is);
364 }
365
366 public static void setLayouts(long groupId, boolean privateLayout,
367 long parentLayoutId, long[] layoutIds)
368 throws com.liferay.portal.PortalException,
369 com.liferay.portal.SystemException {
370 getService()
371 .setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
372 }
373
374 public static com.liferay.portal.model.Layout updateFriendlyURL(long plid,
375 java.lang.String friendlyURL)
376 throws com.liferay.portal.PortalException,
377 com.liferay.portal.SystemException {
378 return getService().updateFriendlyURL(plid, friendlyURL);
379 }
380
381 public static com.liferay.portal.model.Layout updateLayout(long groupId,
382 boolean privateLayout, long layoutId, long parentLayoutId,
383 java.util.Map<java.util.Locale, String> localeNamesMap,
384 java.util.Map<java.util.Locale, String> localeTitlesMap,
385 java.lang.String description, java.lang.String type, boolean hidden,
386 java.lang.String friendlyURL)
387 throws com.liferay.portal.PortalException,
388 com.liferay.portal.SystemException {
389 return getService()
390 .updateLayout(groupId, privateLayout, layoutId,
391 parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
392 hidden, friendlyURL);
393 }
394
395 public static com.liferay.portal.model.Layout updateLayout(long groupId,
396 boolean privateLayout, long layoutId, long parentLayoutId,
397 java.util.Map<java.util.Locale, String> localeNamesMap,
398 java.util.Map<java.util.Locale, String> localeTitlesMap,
399 java.lang.String description, java.lang.String type, boolean hidden,
400 java.lang.String friendlyURL, java.lang.Boolean iconImage,
401 byte[] iconBytes)
402 throws com.liferay.portal.PortalException,
403 com.liferay.portal.SystemException {
404 return getService()
405 .updateLayout(groupId, privateLayout, layoutId,
406 parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
407 hidden, friendlyURL, iconImage, iconBytes);
408 }
409
410 public static com.liferay.portal.model.Layout updateLayout(long groupId,
411 boolean privateLayout, long layoutId, java.lang.String typeSettings)
412 throws com.liferay.portal.PortalException,
413 com.liferay.portal.SystemException {
414 return getService()
415 .updateLayout(groupId, privateLayout, layoutId, typeSettings);
416 }
417
418 public static com.liferay.portal.model.Layout updateLookAndFeel(
419 long groupId, boolean privateLayout, long layoutId,
420 java.lang.String themeId, java.lang.String colorSchemeId,
421 java.lang.String css, boolean wapTheme)
422 throws com.liferay.portal.PortalException,
423 com.liferay.portal.SystemException {
424 return getService()
425 .updateLookAndFeel(groupId, privateLayout, layoutId,
426 themeId, colorSchemeId, css, wapTheme);
427 }
428
429 public static com.liferay.portal.model.Layout updateName(long plid,
430 java.lang.String name, java.lang.String languageId)
431 throws com.liferay.portal.PortalException,
432 com.liferay.portal.SystemException {
433 return getService().updateName(plid, name, languageId);
434 }
435
436 public static com.liferay.portal.model.Layout updateName(long groupId,
437 boolean privateLayout, long layoutId, java.lang.String name,
438 java.lang.String languageId)
439 throws com.liferay.portal.PortalException,
440 com.liferay.portal.SystemException {
441 return getService()
442 .updateName(groupId, privateLayout, layoutId, name,
443 languageId);
444 }
445
446 public static com.liferay.portal.model.Layout updateName(
447 com.liferay.portal.model.Layout layout, java.lang.String name,
448 java.lang.String languageId)
449 throws com.liferay.portal.PortalException,
450 com.liferay.portal.SystemException {
451 return getService().updateName(layout, name, languageId);
452 }
453
454 public static com.liferay.portal.model.Layout updateParentLayoutId(
455 long plid, long parentPlid)
456 throws com.liferay.portal.PortalException,
457 com.liferay.portal.SystemException {
458 return getService().updateParentLayoutId(plid, parentPlid);
459 }
460
461 public static com.liferay.portal.model.Layout updateParentLayoutId(
462 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
463 throws com.liferay.portal.PortalException,
464 com.liferay.portal.SystemException {
465 return getService()
466 .updateParentLayoutId(groupId, privateLayout, layoutId,
467 parentLayoutId);
468 }
469
470 public static com.liferay.portal.model.Layout updatePriority(long plid,
471 int priority)
472 throws com.liferay.portal.PortalException,
473 com.liferay.portal.SystemException {
474 return getService().updatePriority(plid, priority);
475 }
476
477 public static com.liferay.portal.model.Layout updatePriority(long groupId,
478 boolean privateLayout, long layoutId, int priority)
479 throws com.liferay.portal.PortalException,
480 com.liferay.portal.SystemException {
481 return getService()
482 .updatePriority(groupId, privateLayout, layoutId, priority);
483 }
484
485 public static com.liferay.portal.model.Layout updatePriority(
486 com.liferay.portal.model.Layout layout, int priority)
487 throws com.liferay.portal.SystemException {
488 return getService().updatePriority(layout, priority);
489 }
490
491 public static LayoutLocalService getService() {
492 if (_service == null) {
493 throw new RuntimeException("LayoutLocalService is not set");
494 }
495
496 return _service;
497 }
498
499 public void setService(LayoutLocalService service) {
500 _service = service;
501 }
502
503 private static LayoutLocalService _service;
504 }