1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="LayoutLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portal.service.LayoutLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portal.service.LayoutLocalService
45   *
46   */
47  public class LayoutLocalServiceUtil {
48      public static com.liferay.portal.model.Layout addLayout(
49          com.liferay.portal.model.Layout layout)
50          throws com.liferay.portal.SystemException {
51          return _service.addLayout(layout);
52      }
53  
54      public static void deleteLayout(long plid)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteLayout(plid);
58      }
59  
60      public static void deleteLayout(com.liferay.portal.model.Layout layout)
61          throws com.liferay.portal.SystemException {
62          _service.deleteLayout(layout);
63      }
64  
65      public static java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.SystemException {
68          return _service.dynamicQuery(dynamicQuery);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException {
74          return _service.dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      public static com.liferay.portal.model.Layout getLayout(long plid)
78          throws com.liferay.portal.PortalException,
79              com.liferay.portal.SystemException {
80          return _service.getLayout(plid);
81      }
82  
83      public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
84          int start, int end) throws com.liferay.portal.SystemException {
85          return _service.getLayouts(start, end);
86      }
87  
88      public static int getLayoutsCount()
89          throws com.liferay.portal.SystemException {
90          return _service.getLayoutsCount();
91      }
92  
93      public static com.liferay.portal.model.Layout updateLayout(
94          com.liferay.portal.model.Layout layout)
95          throws com.liferay.portal.SystemException {
96          return _service.updateLayout(layout);
97      }
98  
99      public static com.liferay.portal.model.Layout addLayout(long userId,
100         long groupId, boolean privateLayout, long parentLayoutId,
101         java.lang.String name, java.lang.String title,
102         java.lang.String description, java.lang.String type, boolean hidden,
103         java.lang.String friendlyURL)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return _service.addLayout(userId, groupId, privateLayout,
107             parentLayoutId, name, title, description, type, hidden, friendlyURL);
108     }
109 
110     public static com.liferay.portal.model.Layout addLayout(long userId,
111         long groupId, boolean privateLayout, long parentLayoutId,
112         java.util.Map<java.util.Locale, String> localeNamesMap,
113         java.util.Map<java.util.Locale, String> localeTitlesMap,
114         java.lang.String description, java.lang.String type, boolean hidden,
115         java.lang.String friendlyURL)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException {
118         return _service.addLayout(userId, groupId, privateLayout,
119             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
120             hidden, friendlyURL);
121     }
122 
123     public static com.liferay.portal.model.Layout addLayout(long userId,
124         long groupId, boolean privateLayout, long parentLayoutId,
125         java.lang.String name, java.lang.String title,
126         java.lang.String description, java.lang.String type, boolean hidden,
127         java.lang.String friendlyURL, long dlFolderId)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         return _service.addLayout(userId, groupId, privateLayout,
131             parentLayoutId, name, title, description, type, hidden,
132             friendlyURL, dlFolderId);
133     }
134 
135     public static com.liferay.portal.model.Layout addLayout(long userId,
136         long groupId, boolean privateLayout, long parentLayoutId,
137         java.util.Map<java.util.Locale, String> localeNamesMap,
138         java.util.Map<java.util.Locale, String> localeTitlesMap,
139         java.lang.String description, java.lang.String type, boolean hidden,
140         java.lang.String friendlyURL, long dlFolderId)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException {
143         return _service.addLayout(userId, groupId, privateLayout,
144             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
145             hidden, friendlyURL, dlFolderId);
146     }
147 
148     public static void deleteLayout(long groupId, boolean privateLayout,
149         long layoutId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         _service.deleteLayout(groupId, privateLayout, layoutId);
153     }
154 
155     public static void deleteLayout(com.liferay.portal.model.Layout layout,
156         boolean updateLayoutSet)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         _service.deleteLayout(layout, updateLayoutSet);
160     }
161 
162     public static void deleteLayouts(long groupId, boolean privateLayout)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         _service.deleteLayouts(groupId, privateLayout);
166     }
167 
168     public static byte[] exportLayouts(long groupId, boolean privateLayout,
169         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
170         java.util.Date endDate)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         return _service.exportLayouts(groupId, privateLayout, parameterMap,
174             startDate, endDate);
175     }
176 
177     public static byte[] exportLayouts(long groupId, boolean privateLayout,
178         long[] layoutIds, java.util.Map<String, String[]> parameterMap,
179         java.util.Date startDate, java.util.Date endDate)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         return _service.exportLayouts(groupId, privateLayout, layoutIds,
183             parameterMap, startDate, endDate);
184     }
185 
186     public static byte[] exportPortletInfo(long plid,
187         java.lang.String portletId,
188         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
189         java.util.Date endDate)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         return _service.exportPortletInfo(plid, portletId, parameterMap,
193             startDate, endDate);
194     }
195 
196     public static long getDefaultPlid(long groupId)
197         throws com.liferay.portal.SystemException {
198         return _service.getDefaultPlid(groupId);
199     }
200 
201     public static long getDefaultPlid(long groupId, boolean privateLayout)
202         throws com.liferay.portal.SystemException {
203         return _service.getDefaultPlid(groupId, privateLayout);
204     }
205 
206     public static long getDefaultPlid(long groupId, boolean privateLayout,
207         java.lang.String portletId) throws com.liferay.portal.SystemException {
208         return _service.getDefaultPlid(groupId, privateLayout, portletId);
209     }
210 
211     public static com.liferay.portal.model.Layout getDLFolderLayout(
212         long dlFolderId)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException {
215         return _service.getDLFolderLayout(dlFolderId);
216     }
217 
218     public static com.liferay.portal.model.Layout getFriendlyURLLayout(
219         long groupId, boolean privateLayout, java.lang.String friendlyURL)
220         throws com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException {
222         return _service.getFriendlyURLLayout(groupId, privateLayout, friendlyURL);
223     }
224 
225     public static com.liferay.portal.model.Layout getLayout(long groupId,
226         boolean privateLayout, long layoutId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return _service.getLayout(groupId, privateLayout, layoutId);
230     }
231 
232     public static com.liferay.portal.model.Layout getLayoutByIconImageId(
233         long iconImageId)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         return _service.getLayoutByIconImageId(iconImageId);
237     }
238 
239     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
240         long groupId, boolean privateLayout)
241         throws com.liferay.portal.SystemException {
242         return _service.getLayouts(groupId, privateLayout);
243     }
244 
245     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
246         long groupId, boolean privateLayout, long parentLayoutId)
247         throws com.liferay.portal.SystemException {
248         return _service.getLayouts(groupId, privateLayout, parentLayoutId);
249     }
250 
251     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
252         long groupId, boolean privateLayout, java.lang.String type)
253         throws com.liferay.portal.SystemException {
254         return _service.getLayouts(groupId, privateLayout, type);
255     }
256 
257     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
258         long groupId, boolean privateLayout, long parentLayoutId, int start,
259         int end) throws com.liferay.portal.SystemException {
260         return _service.getLayouts(groupId, privateLayout, parentLayoutId,
261             start, end);
262     }
263 
264     public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
265         long groupId, boolean privateLayout, long[] layoutIds)
266         throws com.liferay.portal.PortalException,
267             com.liferay.portal.SystemException {
268         return _service.getLayouts(groupId, privateLayout, layoutIds);
269     }
270 
271     public static com.liferay.portal.model.LayoutReference[] getLayouts(
272         long companyId, java.lang.String portletId, java.lang.String prefsKey,
273         java.lang.String prefsValue) throws com.liferay.portal.SystemException {
274         return _service.getLayouts(companyId, portletId, prefsKey, prefsValue);
275     }
276 
277     public static long getNextLayoutId(long groupId, boolean privateLayout)
278         throws com.liferay.portal.SystemException {
279         return _service.getNextLayoutId(groupId, privateLayout);
280     }
281 
282     public static java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
283         throws com.liferay.portal.SystemException {
284         return _service.getNullFriendlyURLLayouts();
285     }
286 
287     public static void importLayouts(long userId, long groupId,
288         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
289         java.io.File file)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException {
292         _service.importLayouts(userId, groupId, privateLayout, parameterMap,
293             file);
294     }
295 
296     public static void importLayouts(long userId, long groupId,
297         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
298         byte[] bytes)
299         throws com.liferay.portal.PortalException,
300             com.liferay.portal.SystemException {
301         _service.importLayouts(userId, groupId, privateLayout, parameterMap,
302             bytes);
303     }
304 
305     public static void importLayouts(long userId, long groupId,
306         boolean privateLayout, java.util.Map<String, String[]> parameterMap,
307         java.io.InputStream is)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException {
310         _service.importLayouts(userId, groupId, privateLayout, parameterMap, is);
311     }
312 
313     public static void importPortletInfo(long userId, long plid,
314         java.lang.String portletId,
315         java.util.Map<String, String[]> parameterMap, java.io.File file)
316         throws com.liferay.portal.PortalException,
317             com.liferay.portal.SystemException {
318         _service.importPortletInfo(userId, plid, portletId, parameterMap, file);
319     }
320 
321     public static void importPortletInfo(long userId, long plid,
322         java.lang.String portletId,
323         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
324         throws com.liferay.portal.PortalException,
325             com.liferay.portal.SystemException {
326         _service.importPortletInfo(userId, plid, portletId, parameterMap, is);
327     }
328 
329     public static void setLayouts(long groupId, boolean privateLayout,
330         long parentLayoutId, long[] layoutIds)
331         throws com.liferay.portal.PortalException,
332             com.liferay.portal.SystemException {
333         _service.setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
334     }
335 
336     public static com.liferay.portal.model.Layout updateFriendlyURL(long plid,
337         java.lang.String friendlyURL)
338         throws com.liferay.portal.PortalException,
339             com.liferay.portal.SystemException {
340         return _service.updateFriendlyURL(plid, friendlyURL);
341     }
342 
343     public static com.liferay.portal.model.Layout updateLayout(long groupId,
344         boolean privateLayout, long layoutId, long parentLayoutId,
345         java.util.Map<java.util.Locale, String> localeNamesMap,
346         java.util.Map<java.util.Locale, String> localeTitlesMap,
347         java.lang.String description, java.lang.String type, boolean hidden,
348         java.lang.String friendlyURL)
349         throws com.liferay.portal.PortalException,
350             com.liferay.portal.SystemException {
351         return _service.updateLayout(groupId, privateLayout, layoutId,
352             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
353             hidden, friendlyURL);
354     }
355 
356     public static com.liferay.portal.model.Layout updateLayout(long groupId,
357         boolean privateLayout, long layoutId, long parentLayoutId,
358         java.util.Map<java.util.Locale, String> localeNamesMap,
359         java.util.Map<java.util.Locale, String> localeTitlesMap,
360         java.lang.String description, java.lang.String type, boolean hidden,
361         java.lang.String friendlyURL, java.lang.Boolean iconImage,
362         byte[] iconBytes)
363         throws com.liferay.portal.PortalException,
364             com.liferay.portal.SystemException {
365         return _service.updateLayout(groupId, privateLayout, layoutId,
366             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
367             hidden, friendlyURL, iconImage, iconBytes);
368     }
369 
370     public static com.liferay.portal.model.Layout updateLayout(long groupId,
371         boolean privateLayout, long layoutId, java.lang.String typeSettings)
372         throws com.liferay.portal.PortalException,
373             com.liferay.portal.SystemException {
374         return _service.updateLayout(groupId, privateLayout, layoutId,
375             typeSettings);
376     }
377 
378     public static com.liferay.portal.model.Layout updateLookAndFeel(
379         long groupId, boolean privateLayout, long layoutId,
380         java.lang.String themeId, java.lang.String colorSchemeId,
381         java.lang.String css, boolean wapTheme)
382         throws com.liferay.portal.PortalException,
383             com.liferay.portal.SystemException {
384         return _service.updateLookAndFeel(groupId, privateLayout, layoutId,
385             themeId, colorSchemeId, css, wapTheme);
386     }
387 
388     public static com.liferay.portal.model.Layout updateName(long plid,
389         java.lang.String name, java.lang.String languageId)
390         throws com.liferay.portal.PortalException,
391             com.liferay.portal.SystemException {
392         return _service.updateName(plid, name, languageId);
393     }
394 
395     public static com.liferay.portal.model.Layout updateName(long groupId,
396         boolean privateLayout, long layoutId, java.lang.String name,
397         java.lang.String languageId)
398         throws com.liferay.portal.PortalException,
399             com.liferay.portal.SystemException {
400         return _service.updateName(groupId, privateLayout, layoutId, name,
401             languageId);
402     }
403 
404     public static com.liferay.portal.model.Layout updateName(
405         com.liferay.portal.model.Layout layout, java.lang.String name,
406         java.lang.String languageId)
407         throws com.liferay.portal.PortalException,
408             com.liferay.portal.SystemException {
409         return _service.updateName(layout, name, languageId);
410     }
411 
412     public static com.liferay.portal.model.Layout updateParentLayoutId(
413         long plid, long parentPlid)
414         throws com.liferay.portal.PortalException,
415             com.liferay.portal.SystemException {
416         return _service.updateParentLayoutId(plid, parentPlid);
417     }
418 
419     public static com.liferay.portal.model.Layout updateParentLayoutId(
420         long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
421         throws com.liferay.portal.PortalException,
422             com.liferay.portal.SystemException {
423         return _service.updateParentLayoutId(groupId, privateLayout, layoutId,
424             parentLayoutId);
425     }
426 
427     public static com.liferay.portal.model.Layout updatePriority(long plid,
428         int priority)
429         throws com.liferay.portal.PortalException,
430             com.liferay.portal.SystemException {
431         return _service.updatePriority(plid, priority);
432     }
433 
434     public static com.liferay.portal.model.Layout updatePriority(long groupId,
435         boolean privateLayout, long layoutId, int priority)
436         throws com.liferay.portal.PortalException,
437             com.liferay.portal.SystemException {
438         return _service.updatePriority(groupId, privateLayout, layoutId,
439             priority);
440     }
441 
442     public static com.liferay.portal.model.Layout updatePriority(
443         com.liferay.portal.model.Layout layout, int priority)
444         throws com.liferay.portal.SystemException {
445         return _service.updatePriority(layout, priority);
446     }
447 
448     public static LayoutLocalService getService() {
449         return _service;
450     }
451 
452     public void setService(LayoutLocalService service) {
453         _service = service;
454     }
455 
456     private static LayoutLocalService _service;
457 }