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