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