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