1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="LayoutLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link LayoutLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       LayoutLocalService
37   * @generated
38   */
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.kernel.exception.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.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          getService().deleteLayout(plid);
54      }
55  
56      public static void deleteLayout(com.liferay.portal.model.Layout layout)
57          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.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)
81          throws com.liferay.portal.kernel.exception.SystemException {
82          return getService().getLayouts(start, end);
83      }
84  
85      public static int getLayoutsCount()
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().getLayoutsCount();
88      }
89  
90      public static com.liferay.portal.model.Layout updateLayout(
91          com.liferay.portal.model.Layout layout)
92          throws com.liferay.portal.kernel.exception.SystemException {
93          return getService().updateLayout(layout);
94      }
95  
96      public static com.liferay.portal.model.Layout updateLayout(
97          com.liferay.portal.model.Layout layout, boolean merge)
98          throws com.liferay.portal.kernel.exception.SystemException {
99          return getService().updateLayout(layout, merge);
100     }
101 
102     public static com.liferay.portal.model.Layout addLayout(long userId,
103         long groupId, boolean privateLayout, long parentLayoutId,
104         java.util.Map<java.util.Locale, String> localeNamesMap,
105         java.util.Map<java.util.Locale, String> localeTitlesMap,
106         java.lang.String description, java.lang.String type, boolean hidden,
107         java.lang.String friendlyURL, long dlFolderId,
108         com.liferay.portal.service.ServiceContext serviceContext)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getService()
112                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
113             localeNamesMap, localeTitlesMap, description, type, hidden,
114             friendlyURL, dlFolderId, serviceContext);
115     }
116 
117     public static com.liferay.portal.model.Layout addLayout(long userId,
118         long groupId, boolean privateLayout, long parentLayoutId,
119         java.util.Map<java.util.Locale, String> localeNamesMap,
120         java.util.Map<java.util.Locale, String> localeTitlesMap,
121         java.lang.String description, java.lang.String type, boolean hidden,
122         java.lang.String friendlyURL,
123         com.liferay.portal.service.ServiceContext serviceContext)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return getService()
127                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
128             localeNamesMap, localeTitlesMap, description, type, hidden,
129             friendlyURL, serviceContext);
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         com.liferay.portal.service.ServiceContext serviceContext)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException {
140         return getService()
141                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
142             name, title, description, type, hidden, friendlyURL, dlFolderId,
143             serviceContext);
144     }
145 
146     public static com.liferay.portal.model.Layout addLayout(long userId,
147         long groupId, boolean privateLayout, long parentLayoutId,
148         java.lang.String name, java.lang.String title,
149         java.lang.String description, java.lang.String type, boolean hidden,
150         java.lang.String friendlyURL,
151         com.liferay.portal.service.ServiceContext serviceContext)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException {
154         return getService()
155                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
156             name, title, description, type, hidden, friendlyURL, serviceContext);
157     }
158 
159     public static void deleteLayout(com.liferay.portal.model.Layout layout,
160         boolean updateLayoutSet)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException {
163         getService().deleteLayout(layout, updateLayoutSet);
164     }
165 
166     public static void deleteLayout(long groupId, boolean privateLayout,
167         long layoutId)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException {
170         getService().deleteLayout(groupId, privateLayout, layoutId);
171     }
172 
173     public static void deleteLayouts(long groupId, boolean privateLayout)
174         throws com.liferay.portal.kernel.exception.PortalException,
175             com.liferay.portal.kernel.exception.SystemException {
176         getService().deleteLayouts(groupId, privateLayout);
177     }
178 
179     public static byte[] exportLayouts(long groupId, boolean privateLayout,
180         long[] layoutIds, java.util.Map<String, String[]> parameterMap,
181         java.util.Date startDate, java.util.Date endDate)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         return getService()
185                    .exportLayouts(groupId, privateLayout, layoutIds,
186             parameterMap, startDate, endDate);
187     }
188 
189     public static byte[] exportLayouts(long groupId, boolean privateLayout,
190         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
191         java.util.Date endDate)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         return getService()
195                    .exportLayouts(groupId, privateLayout, parameterMap,
196             startDate, endDate);
197     }
198 
199     public static java.io.File exportLayoutsAsFile(long groupId,
200         boolean privateLayout, long[] layoutIds,
201         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
202         java.util.Date endDate)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException {
205         return getService()
206                    .exportLayoutsAsFile(groupId, privateLayout, layoutIds,
207             parameterMap, startDate, endDate);
208     }
209 
210     public static byte[] exportPortletInfo(long plid, long groupId,
211         java.lang.String portletId,
212         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
213         java.util.Date endDate)
214         throws com.liferay.portal.kernel.exception.PortalException,
215             com.liferay.portal.kernel.exception.SystemException {
216         return getService()
217                    .exportPortletInfo(plid, groupId, portletId, parameterMap,
218             startDate, endDate);
219     }
220 
221     public static java.io.File exportPortletInfoAsFile(long plid, long groupId,
222         java.lang.String portletId,
223         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
224         java.util.Date endDate)
225         throws com.liferay.portal.kernel.exception.PortalException,
226             com.liferay.portal.kernel.exception.SystemException {
227         return getService()
228                    .exportPortletInfoAsFile(plid, groupId, portletId,
229             parameterMap, startDate, endDate);
230     }
231 
232     public static long getDefaultPlid(long groupId)
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getService().getDefaultPlid(groupId);
235     }
236 
237     public static long getDefaultPlid(long groupId, boolean privateLayout)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getService().getDefaultPlid(groupId, privateLayout);
240     }
241 
242     public static long getDefaultPlid(long groupId, boolean privateLayout,
243         java.lang.String portletId)
244         throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
251             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
266             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
273             com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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, long parentLayoutId, int start,
291         int end) throws com.liferay.portal.kernel.exception.SystemException {
292         return getService()
293                    .getLayouts(groupId, privateLayout, parentLayoutId, start,
294             end);
295     }
296 
297     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
298         long groupId, boolean privateLayout, long[] layoutIds)
299         throws com.liferay.portal.kernel.exception.PortalException,
300             com.liferay.portal.kernel.exception.SystemException {
301         return getService().getLayouts(groupId, privateLayout, layoutIds);
302     }
303 
304     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
305         long groupId, boolean privateLayout, java.lang.String type)
306         throws com.liferay.portal.kernel.exception.SystemException {
307         return getService().getLayouts(groupId, privateLayout, type);
308     }
309 
310     public static com.liferay.portal.model.LayoutReference[] getLayouts(
311         long companyId, java.lang.String portletId,
312         java.lang.String preferencesKey, java.lang.String preferencesValue)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getService()
315                    .getLayouts(companyId, portletId, preferencesKey,
316             preferencesValue);
317     }
318 
319     public static long getNextLayoutId(long groupId, boolean privateLayout)
320         throws com.liferay.portal.kernel.exception.SystemException {
321         return getService().getNextLayoutId(groupId, privateLayout);
322     }
323 
324     public static java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return getService().getNullFriendlyURLLayouts();
327     }
328 
329     public static boolean hasLayouts(long groupId, boolean privateLayout,
330         long parentLayoutId)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return getService().hasLayouts(groupId, privateLayout, parentLayoutId);
333     }
334 
335     public static void importLayouts(long userId, long groupId,
336         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
337         byte[] bytes)
338         throws com.liferay.portal.kernel.exception.PortalException,
339             com.liferay.portal.kernel.exception.SystemException {
340         getService()
341             .importLayouts(userId, groupId, privateLayout, parameterMap, bytes);
342     }
343 
344     public static void importLayouts(long userId, long groupId,
345         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
346         java.io.File file)
347         throws com.liferay.portal.kernel.exception.PortalException,
348             com.liferay.portal.kernel.exception.SystemException {
349         getService()
350             .importLayouts(userId, groupId, privateLayout, parameterMap, file);
351     }
352 
353     public static void importLayouts(long userId, long groupId,
354         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
355         java.io.InputStream is)
356         throws com.liferay.portal.kernel.exception.PortalException,
357             com.liferay.portal.kernel.exception.SystemException {
358         getService()
359             .importLayouts(userId, groupId, privateLayout, parameterMap, is);
360     }
361 
362     public static void importPortletInfo(long userId, long plid, long groupId,
363         java.lang.String portletId,
364         java.util.Map<String, String[]> parameterMap, java.io.File file)
365         throws com.liferay.portal.kernel.exception.PortalException,
366             com.liferay.portal.kernel.exception.SystemException {
367         getService()
368             .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
369             file);
370     }
371 
372     public static void importPortletInfo(long userId, long plid, long groupId,
373         java.lang.String portletId,
374         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
375         throws com.liferay.portal.kernel.exception.PortalException,
376             com.liferay.portal.kernel.exception.SystemException {
377         getService()
378             .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
379             is);
380     }
381 
382     public static void setLayouts(long groupId, boolean privateLayout,
383         long parentLayoutId, long[] layoutIds)
384         throws com.liferay.portal.kernel.exception.PortalException,
385             com.liferay.portal.kernel.exception.SystemException {
386         getService()
387             .setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
388     }
389 
390     public static com.liferay.portal.model.Layout updateFriendlyURL(long plid,
391         java.lang.String friendlyURL)
392         throws com.liferay.portal.kernel.exception.PortalException,
393             com.liferay.portal.kernel.exception.SystemException {
394         return getService().updateFriendlyURL(plid, friendlyURL);
395     }
396 
397     public static com.liferay.portal.model.Layout updateLayout(long groupId,
398         boolean privateLayout, long layoutId, long parentLayoutId,
399         java.util.Map<java.util.Locale, String> localeNamesMap,
400         java.util.Map<java.util.Locale, String> localeTitlesMap,
401         java.lang.String description, java.lang.String type, boolean hidden,
402         java.lang.String friendlyURL, java.lang.Boolean iconImage,
403         byte[] iconBytes,
404         com.liferay.portal.service.ServiceContext serviceContext)
405         throws com.liferay.portal.kernel.exception.PortalException,
406             com.liferay.portal.kernel.exception.SystemException {
407         return getService()
408                    .updateLayout(groupId, privateLayout, layoutId,
409             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
410             hidden, friendlyURL, iconImage, iconBytes, serviceContext);
411     }
412 
413     public static com.liferay.portal.model.Layout updateLayout(long groupId,
414         boolean privateLayout, long layoutId, long parentLayoutId,
415         java.util.Map<java.util.Locale, String> localeNamesMap,
416         java.util.Map<java.util.Locale, String> localeTitlesMap,
417         java.lang.String description, java.lang.String type, boolean hidden,
418         java.lang.String friendlyURL,
419         com.liferay.portal.service.ServiceContext serviceContext)
420         throws com.liferay.portal.kernel.exception.PortalException,
421             com.liferay.portal.kernel.exception.SystemException {
422         return getService()
423                    .updateLayout(groupId, privateLayout, layoutId,
424             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
425             hidden, friendlyURL, serviceContext);
426     }
427 
428     public static com.liferay.portal.model.Layout updateLayout(long groupId,
429         boolean privateLayout, long layoutId, java.lang.String typeSettings)
430         throws com.liferay.portal.kernel.exception.PortalException,
431             com.liferay.portal.kernel.exception.SystemException {
432         return getService()
433                    .updateLayout(groupId, privateLayout, layoutId, typeSettings);
434     }
435 
436     public static com.liferay.portal.model.Layout updateLookAndFeel(
437         long groupId, boolean privateLayout, long layoutId,
438         java.lang.String themeId, java.lang.String colorSchemeId,
439         java.lang.String css, boolean wapTheme)
440         throws com.liferay.portal.kernel.exception.PortalException,
441             com.liferay.portal.kernel.exception.SystemException {
442         return getService()
443                    .updateLookAndFeel(groupId, privateLayout, layoutId,
444             themeId, colorSchemeId, css, wapTheme);
445     }
446 
447     public static com.liferay.portal.model.Layout updateName(
448         com.liferay.portal.model.Layout layout, java.lang.String name,
449         java.lang.String languageId)
450         throws com.liferay.portal.kernel.exception.PortalException,
451             com.liferay.portal.kernel.exception.SystemException {
452         return getService().updateName(layout, name, languageId);
453     }
454 
455     public static com.liferay.portal.model.Layout updateName(long groupId,
456         boolean privateLayout, long layoutId, java.lang.String name,
457         java.lang.String languageId)
458         throws com.liferay.portal.kernel.exception.PortalException,
459             com.liferay.portal.kernel.exception.SystemException {
460         return getService()
461                    .updateName(groupId, privateLayout, layoutId, name,
462             languageId);
463     }
464 
465     public static com.liferay.portal.model.Layout updateName(long plid,
466         java.lang.String name, java.lang.String languageId)
467         throws com.liferay.portal.kernel.exception.PortalException,
468             com.liferay.portal.kernel.exception.SystemException {
469         return getService().updateName(plid, name, languageId);
470     }
471 
472     public static com.liferay.portal.model.Layout updateParentLayoutId(
473         long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
474         throws com.liferay.portal.kernel.exception.PortalException,
475             com.liferay.portal.kernel.exception.SystemException {
476         return getService()
477                    .updateParentLayoutId(groupId, privateLayout, layoutId,
478             parentLayoutId);
479     }
480 
481     public static com.liferay.portal.model.Layout updateParentLayoutId(
482         long plid, long parentPlid)
483         throws com.liferay.portal.kernel.exception.PortalException,
484             com.liferay.portal.kernel.exception.SystemException {
485         return getService().updateParentLayoutId(plid, parentPlid);
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.kernel.exception.SystemException {
491         return getService().updatePriority(layout, priority);
492     }
493 
494     public static com.liferay.portal.model.Layout updatePriority(long groupId,
495         boolean privateLayout, long layoutId, int priority)
496         throws com.liferay.portal.kernel.exception.PortalException,
497             com.liferay.portal.kernel.exception.SystemException {
498         return getService()
499                    .updatePriority(groupId, privateLayout, layoutId, priority);
500     }
501 
502     public static com.liferay.portal.model.Layout updatePriority(long plid,
503         int priority)
504         throws com.liferay.portal.kernel.exception.PortalException,
505             com.liferay.portal.kernel.exception.SystemException {
506         return getService().updatePriority(plid, priority);
507     }
508 
509     public static LayoutLocalService getService() {
510         if (_service == null) {
511             _service = (LayoutLocalService)PortalBeanLocatorUtil.locate(LayoutLocalService.class.getName());
512         }
513 
514         return _service;
515     }
516 
517     public void setService(LayoutLocalService service) {
518         _service = service;
519     }
520 
521     private static LayoutLocalService _service;
522 }