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