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