1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.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 java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException {
78          return getService()
79                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80      }
81  
82      public static int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.SystemException {
85          return getService().dynamicQueryCount(dynamicQuery);
86      }
87  
88      public static com.liferay.portal.model.Layout getLayout(long plid)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException {
91          return getService().getLayout(plid);
92      }
93  
94      public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
95          int start, int end) throws com.liferay.portal.SystemException {
96          return getService().getLayouts(start, end);
97      }
98  
99      public static int getLayoutsCount()
100         throws com.liferay.portal.SystemException {
101         return getService().getLayoutsCount();
102     }
103 
104     public static com.liferay.portal.model.Layout updateLayout(
105         com.liferay.portal.model.Layout layout)
106         throws com.liferay.portal.SystemException {
107         return getService().updateLayout(layout);
108     }
109 
110     public static com.liferay.portal.model.Layout updateLayout(
111         com.liferay.portal.model.Layout layout, boolean merge)
112         throws com.liferay.portal.SystemException {
113         return getService().updateLayout(layout, merge);
114     }
115 
116     public static com.liferay.portal.model.Layout addLayout(long userId,
117         long groupId, boolean privateLayout, long parentLayoutId,
118         java.util.Map<java.util.Locale, String> localeNamesMap,
119         java.util.Map<java.util.Locale, String> localeTitlesMap,
120         java.lang.String description, java.lang.String type, boolean hidden,
121         java.lang.String friendlyURL)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return getService()
125                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
126             localeNamesMap, localeTitlesMap, description, type, hidden,
127             friendlyURL);
128     }
129 
130     public static com.liferay.portal.model.Layout addLayout(long userId,
131         long groupId, boolean privateLayout, long parentLayoutId,
132         java.util.Map<java.util.Locale, String> localeNamesMap,
133         java.util.Map<java.util.Locale, String> localeTitlesMap,
134         java.lang.String description, java.lang.String type, boolean hidden,
135         java.lang.String friendlyURL, long dlFolderId)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return getService()
139                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
140             localeNamesMap, localeTitlesMap, description, type, hidden,
141             friendlyURL, dlFolderId);
142     }
143 
144     public static com.liferay.portal.model.Layout addLayout(long userId,
145         long groupId, boolean privateLayout, long parentLayoutId,
146         java.lang.String name, java.lang.String title,
147         java.lang.String description, java.lang.String type, boolean hidden,
148         java.lang.String friendlyURL)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         return getService()
152                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
153             name, title, description, type, hidden, friendlyURL);
154     }
155 
156     public static com.liferay.portal.model.Layout addLayout(long userId,
157         long groupId, boolean privateLayout, long parentLayoutId,
158         java.lang.String name, java.lang.String title,
159         java.lang.String description, java.lang.String type, boolean hidden,
160         java.lang.String friendlyURL, long dlFolderId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         return getService()
164                    .addLayout(userId, groupId, privateLayout, parentLayoutId,
165             name, title, description, type, hidden, friendlyURL, dlFolderId);
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 deleteLayout(long groupId, boolean privateLayout,
176         long layoutId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException {
179         getService().deleteLayout(groupId, privateLayout, layoutId);
180     }
181 
182     public static void deleteLayouts(long groupId, boolean privateLayout)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         getService().deleteLayouts(groupId, privateLayout);
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 byte[] exportLayouts(long groupId, boolean privateLayout,
199         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
200         java.util.Date endDate)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         return getService()
204                    .exportLayouts(groupId, privateLayout, parameterMap,
205             startDate, endDate);
206     }
207 
208     public static java.io.File exportLayoutsAsFile(long groupId,
209         boolean privateLayout, long[] layoutIds,
210         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
211         java.util.Date endDate)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException {
214         return getService()
215                    .exportLayoutsAsFile(groupId, privateLayout, layoutIds,
216             parameterMap, startDate, endDate);
217     }
218 
219     public static byte[] exportPortletInfo(long plid, long groupId,
220         java.lang.String portletId,
221         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
222         java.util.Date endDate)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException {
225         return getService()
226                    .exportPortletInfo(plid, groupId, portletId, parameterMap,
227             startDate, endDate);
228     }
229 
230     public static java.io.File exportPortletInfoAsFile(long plid, long groupId,
231         java.lang.String portletId,
232         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
233         java.util.Date endDate)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         return getService()
237                    .exportPortletInfoAsFile(plid, groupId, portletId,
238             parameterMap, startDate, endDate);
239     }
240 
241     public static long getDefaultPlid(long groupId)
242         throws com.liferay.portal.SystemException {
243         return getService().getDefaultPlid(groupId);
244     }
245 
246     public static long getDefaultPlid(long groupId, boolean privateLayout)
247         throws com.liferay.portal.SystemException {
248         return getService().getDefaultPlid(groupId, privateLayout);
249     }
250 
251     public static long getDefaultPlid(long groupId, boolean privateLayout,
252         java.lang.String portletId) throws com.liferay.portal.SystemException {
253         return getService().getDefaultPlid(groupId, privateLayout, portletId);
254     }
255 
256     public static com.liferay.portal.model.Layout getDLFolderLayout(
257         long dlFolderId)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         return getService().getDLFolderLayout(dlFolderId);
261     }
262 
263     public static com.liferay.portal.model.Layout getFriendlyURLLayout(
264         long groupId, boolean privateLayout, java.lang.String friendlyURL)
265         throws com.liferay.portal.PortalException,
266             com.liferay.portal.SystemException {
267         return getService()
268                    .getFriendlyURLLayout(groupId, privateLayout, friendlyURL);
269     }
270 
271     public static com.liferay.portal.model.Layout getLayout(long groupId,
272         boolean privateLayout, long layoutId)
273         throws com.liferay.portal.PortalException,
274             com.liferay.portal.SystemException {
275         return getService().getLayout(groupId, privateLayout, layoutId);
276     }
277 
278     public static com.liferay.portal.model.Layout getLayoutByIconImageId(
279         long iconImageId)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         return getService().getLayoutByIconImageId(iconImageId);
283     }
284 
285     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
286         long groupId, boolean privateLayout)
287         throws com.liferay.portal.SystemException {
288         return getService().getLayouts(groupId, privateLayout);
289     }
290 
291     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
292         long groupId, boolean privateLayout, long parentLayoutId)
293         throws com.liferay.portal.SystemException {
294         return getService().getLayouts(groupId, privateLayout, parentLayoutId);
295     }
296 
297     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
298         long groupId, boolean privateLayout, long parentLayoutId, int start,
299         int end) throws com.liferay.portal.SystemException {
300         return getService()
301                    .getLayouts(groupId, privateLayout, parentLayoutId, start,
302             end);
303     }
304 
305     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
306         long groupId, boolean privateLayout, long[] layoutIds)
307         throws com.liferay.portal.PortalException,
308             com.liferay.portal.SystemException {
309         return getService().getLayouts(groupId, privateLayout, layoutIds);
310     }
311 
312     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
313         long groupId, boolean privateLayout, java.lang.String type)
314         throws com.liferay.portal.SystemException {
315         return getService().getLayouts(groupId, privateLayout, type);
316     }
317 
318     public static com.liferay.portal.model.LayoutReference[] getLayouts(
319         long companyId, java.lang.String portletId,
320         java.lang.String preferencesKey, java.lang.String preferencesValue)
321         throws com.liferay.portal.SystemException {
322         return getService()
323                    .getLayouts(companyId, portletId, preferencesKey,
324             preferencesValue);
325     }
326 
327     public static long getNextLayoutId(long groupId, boolean privateLayout)
328         throws com.liferay.portal.SystemException {
329         return getService().getNextLayoutId(groupId, privateLayout);
330     }
331 
332     public static java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
333         throws com.liferay.portal.SystemException {
334         return getService().getNullFriendlyURLLayouts();
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.File file)
349         throws com.liferay.portal.PortalException,
350             com.liferay.portal.SystemException {
351         getService()
352             .importLayouts(userId, groupId, privateLayout, parameterMap, file);
353     }
354 
355     public static void importLayouts(long userId, long groupId,
356         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
357         java.io.InputStream is)
358         throws com.liferay.portal.PortalException,
359             com.liferay.portal.SystemException {
360         getService()
361             .importLayouts(userId, groupId, privateLayout, parameterMap, is);
362     }
363 
364     public static void importPortletInfo(long userId, long plid, long groupId,
365         java.lang.String portletId,
366         java.util.Map<String, String[]> parameterMap, java.io.File file)
367         throws com.liferay.portal.PortalException,
368             com.liferay.portal.SystemException {
369         getService()
370             .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
371             file);
372     }
373 
374     public static void importPortletInfo(long userId, long plid, long groupId,
375         java.lang.String portletId,
376         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
377         throws com.liferay.portal.PortalException,
378             com.liferay.portal.SystemException {
379         getService()
380             .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
381             is);
382     }
383 
384     public static void setLayouts(long groupId, boolean privateLayout,
385         long parentLayoutId, long[] layoutIds)
386         throws com.liferay.portal.PortalException,
387             com.liferay.portal.SystemException {
388         getService()
389             .setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
390     }
391 
392     public static com.liferay.portal.model.Layout updateFriendlyURL(long plid,
393         java.lang.String friendlyURL)
394         throws com.liferay.portal.PortalException,
395             com.liferay.portal.SystemException {
396         return getService().updateFriendlyURL(plid, friendlyURL);
397     }
398 
399     public static com.liferay.portal.model.Layout updateLayout(long groupId,
400         boolean privateLayout, long layoutId, long parentLayoutId,
401         java.util.Map<java.util.Locale, String> localeNamesMap,
402         java.util.Map<java.util.Locale, String> localeTitlesMap,
403         java.lang.String description, java.lang.String type, boolean hidden,
404         java.lang.String friendlyURL)
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);
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, java.lang.Boolean iconImage,
419         byte[] iconBytes)
420         throws com.liferay.portal.PortalException,
421             com.liferay.portal.SystemException {
422         return getService()
423                    .updateLayout(groupId, privateLayout, layoutId,
424             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
425             hidden, friendlyURL, iconImage, iconBytes);
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.PortalException,
431             com.liferay.portal.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.PortalException,
441             com.liferay.portal.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.PortalException,
451             com.liferay.portal.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.PortalException,
459             com.liferay.portal.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.PortalException,
468             com.liferay.portal.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.PortalException,
475             com.liferay.portal.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.PortalException,
484             com.liferay.portal.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.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.PortalException,
497             com.liferay.portal.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.PortalException,
505             com.liferay.portal.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 }