1   /**
2    * Copyright (c) 2000-2009 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="LayoutServiceUtil.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 is a wrapper for {@link LayoutService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       LayoutService
40   * @generated
41   */
42  public class LayoutServiceWrapper implements LayoutService {
43      public LayoutServiceWrapper(LayoutService layoutService) {
44          _layoutService = layoutService;
45      }
46  
47      public com.liferay.portal.model.Layout addLayout(long groupId,
48          boolean privateLayout, long parentLayoutId,
49          java.util.Map<java.util.Locale, String> localeNamesMap,
50          java.util.Map<java.util.Locale, String> localeTitlesMap,
51          java.lang.String description, java.lang.String type, boolean hidden,
52          java.lang.String friendlyURL)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
56              localeNamesMap, localeTitlesMap, description, type, hidden,
57              friendlyURL);
58      }
59  
60      public com.liferay.portal.model.Layout addLayout(long groupId,
61          boolean privateLayout, long parentLayoutId, java.lang.String name,
62          java.lang.String title, java.lang.String description,
63          java.lang.String type, boolean hidden, java.lang.String friendlyURL)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException {
66          return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
67              name, title, description, type, hidden, friendlyURL);
68      }
69  
70      public void deleteLayout(long plid)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException {
73          _layoutService.deleteLayout(plid);
74      }
75  
76      public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          _layoutService.deleteLayout(groupId, privateLayout, layoutId);
80      }
81  
82      public byte[] exportLayouts(long groupId, boolean privateLayout,
83          long[] layoutIds, java.util.Map<String, String[]> parameterMap,
84          java.util.Date startDate, java.util.Date endDate)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return _layoutService.exportLayouts(groupId, privateLayout, layoutIds,
88              parameterMap, startDate, endDate);
89      }
90  
91      public byte[] exportLayouts(long groupId, boolean privateLayout,
92          java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
93          java.util.Date endDate)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          return _layoutService.exportLayouts(groupId, privateLayout,
97              parameterMap, startDate, endDate);
98      }
99  
100     public java.io.File exportLayoutsAsFile(long groupId,
101         boolean privateLayout, long[] layoutIds,
102         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
103         java.util.Date endDate)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException {
106         return _layoutService.exportLayoutsAsFile(groupId, privateLayout,
107             layoutIds, parameterMap, startDate, endDate);
108     }
109 
110     public byte[] exportPortletInfo(long plid, long groupId,
111         java.lang.String portletId,
112         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
113         java.util.Date endDate)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return _layoutService.exportPortletInfo(plid, groupId, portletId,
117             parameterMap, startDate, endDate);
118     }
119 
120     public java.io.File exportPortletInfoAsFile(long plid, long groupId,
121         java.lang.String portletId,
122         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
123         java.util.Date endDate)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _layoutService.exportPortletInfoAsFile(plid, groupId, portletId,
127             parameterMap, startDate, endDate);
128     }
129 
130     public java.lang.String getLayoutName(long groupId, boolean privateLayout,
131         long layoutId, java.lang.String languageId)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return _layoutService.getLayoutName(groupId, privateLayout, layoutId,
135             languageId);
136     }
137 
138     public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
139         long companyId, java.lang.String portletId,
140         java.lang.String preferencesKey, java.lang.String preferencesValue)
141         throws com.liferay.portal.SystemException {
142         return _layoutService.getLayoutReferences(companyId, portletId,
143             preferencesKey, preferencesValue);
144     }
145 
146     public void importLayouts(long groupId, boolean privateLayout,
147         java.util.Map<String, String[]> parameterMap, byte[] bytes)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         _layoutService.importLayouts(groupId, privateLayout, parameterMap, bytes);
151     }
152 
153     public void importLayouts(long groupId, boolean privateLayout,
154         java.util.Map<String, String[]> parameterMap, java.io.File file)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         _layoutService.importLayouts(groupId, privateLayout, parameterMap, file);
158     }
159 
160     public void importLayouts(long groupId, boolean privateLayout,
161         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         _layoutService.importLayouts(groupId, privateLayout, parameterMap, is);
165     }
166 
167     public void importPortletInfo(long plid, long groupId,
168         java.lang.String portletId,
169         java.util.Map<String, String[]> parameterMap, java.io.File file)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         _layoutService.importPortletInfo(plid, groupId, portletId,
173             parameterMap, file);
174     }
175 
176     public void importPortletInfo(long plid, long groupId,
177         java.lang.String portletId,
178         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         _layoutService.importPortletInfo(plid, groupId, portletId,
182             parameterMap, is);
183     }
184 
185     public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
186         boolean privateLayout, java.util.Map<Long, Boolean> layoutIdMap,
187         java.util.Map<String, String[]> parameterMap, java.lang.String scope,
188         java.util.Date startDate, java.util.Date endDate,
189         java.lang.String groupName, java.lang.String cronText,
190         java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
191         java.lang.String description)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         _layoutService.schedulePublishToLive(sourceGroupId, targetGroupId,
195             privateLayout, layoutIdMap, parameterMap, scope, startDate,
196             endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
197             description);
198     }
199 
200     public void schedulePublishToRemote(long sourceGroupId,
201         boolean privateLayout, java.util.Map<Long, Boolean> layoutIdMap,
202         java.util.Map<String, String[]> parameterMap,
203         java.lang.String remoteAddress, int remotePort,
204         boolean secureConnection, long remoteGroupId,
205         boolean remotePrivateLayout, java.util.Date startDate,
206         java.util.Date endDate, java.lang.String groupName,
207         java.lang.String cronText, java.util.Date schedulerStartDate,
208         java.util.Date schedulerEndDate, java.lang.String description)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         _layoutService.schedulePublishToRemote(sourceGroupId, privateLayout,
212             layoutIdMap, parameterMap, remoteAddress, remotePort,
213             secureConnection, remoteGroupId, remotePrivateLayout, startDate,
214             endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
215             description);
216     }
217 
218     public void setLayouts(long groupId, boolean privateLayout,
219         long parentLayoutId, long[] layoutIds)
220         throws com.liferay.portal.PortalException,
221             com.liferay.portal.SystemException {
222         _layoutService.setLayouts(groupId, privateLayout, parentLayoutId,
223             layoutIds);
224     }
225 
226     public void unschedulePublishToLive(long groupId, java.lang.String jobName,
227         java.lang.String groupName)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         _layoutService.unschedulePublishToLive(groupId, jobName, groupName);
231     }
232 
233     public void unschedulePublishToRemote(long groupId,
234         java.lang.String jobName, java.lang.String groupName)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         _layoutService.unschedulePublishToRemote(groupId, jobName, groupName);
238     }
239 
240     public com.liferay.portal.model.Layout updateLayout(long groupId,
241         boolean privateLayout, long layoutId, long parentLayoutId,
242         java.util.Map<java.util.Locale, String> localeNamesMap,
243         java.util.Map<java.util.Locale, String> localeTitlesMap,
244         java.lang.String description, java.lang.String type, boolean hidden,
245         java.lang.String friendlyURL)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException {
248         return _layoutService.updateLayout(groupId, privateLayout, layoutId,
249             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
250             hidden, friendlyURL);
251     }
252 
253     public com.liferay.portal.model.Layout updateLayout(long groupId,
254         boolean privateLayout, long layoutId, long parentLayoutId,
255         java.util.Map<java.util.Locale, String> localeNamesMap,
256         java.util.Map<java.util.Locale, String> localeTitlesMap,
257         java.lang.String description, java.lang.String type, boolean hidden,
258         java.lang.String friendlyURL, java.lang.Boolean iconImage,
259         byte[] iconBytes)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         return _layoutService.updateLayout(groupId, privateLayout, layoutId,
263             parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
264             hidden, friendlyURL, iconImage, iconBytes);
265     }
266 
267     public com.liferay.portal.model.Layout updateLayout(long groupId,
268         boolean privateLayout, long layoutId, java.lang.String typeSettings)
269         throws com.liferay.portal.PortalException,
270             com.liferay.portal.SystemException {
271         return _layoutService.updateLayout(groupId, privateLayout, layoutId,
272             typeSettings);
273     }
274 
275     public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
276         boolean privateLayout, long layoutId, java.lang.String themeId,
277         java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException {
280         return _layoutService.updateLookAndFeel(groupId, privateLayout,
281             layoutId, themeId, colorSchemeId, css, wapTheme);
282     }
283 
284     public com.liferay.portal.model.Layout updateName(long groupId,
285         boolean privateLayout, long layoutId, java.lang.String name,
286         java.lang.String languageId)
287         throws com.liferay.portal.PortalException,
288             com.liferay.portal.SystemException {
289         return _layoutService.updateName(groupId, privateLayout, layoutId,
290             name, languageId);
291     }
292 
293     public com.liferay.portal.model.Layout updateName(long plid,
294         java.lang.String name, java.lang.String languageId)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException {
297         return _layoutService.updateName(plid, name, languageId);
298     }
299 
300     public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
301         boolean privateLayout, long layoutId, long parentLayoutId)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException {
304         return _layoutService.updateParentLayoutId(groupId, privateLayout,
305             layoutId, parentLayoutId);
306     }
307 
308     public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
309         long parentPlid)
310         throws com.liferay.portal.PortalException,
311             com.liferay.portal.SystemException {
312         return _layoutService.updateParentLayoutId(plid, parentPlid);
313     }
314 
315     public com.liferay.portal.model.Layout updatePriority(long groupId,
316         boolean privateLayout, long layoutId, int priority)
317         throws com.liferay.portal.PortalException,
318             com.liferay.portal.SystemException {
319         return _layoutService.updatePriority(groupId, privateLayout, layoutId,
320             priority);
321     }
322 
323     public com.liferay.portal.model.Layout updatePriority(long plid,
324         int priority)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException {
327         return _layoutService.updatePriority(plid, priority);
328     }
329 
330     public LayoutService getWrappedLayoutService() {
331         return _layoutService;
332     }
333 
334     private LayoutService _layoutService;
335 }