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