1
22
23 package com.liferay.portal.service;
24
25
26
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, java.lang.String name,
49 java.lang.String title, java.lang.String description,
50 java.lang.String type, boolean hidden, java.lang.String friendlyURL)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
54 name, title, description, type, hidden, friendlyURL);
55 }
56
57 public com.liferay.portal.model.Layout addLayout(long groupId,
58 boolean privateLayout, long parentLayoutId,
59 java.util.Map<java.util.Locale, String> localeNamesMap,
60 java.util.Map<java.util.Locale, String> localeTitlesMap,
61 java.lang.String description, java.lang.String type, boolean hidden,
62 java.lang.String friendlyURL)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
66 localeNamesMap, localeTitlesMap, description, type, hidden,
67 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 java.lang.String getLayoutName(long groupId, boolean privateLayout,
83 long layoutId, java.lang.String languageId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return _layoutService.getLayoutName(groupId, privateLayout, layoutId,
87 languageId);
88 }
89
90 public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
91 long companyId, java.lang.String portletId,
92 java.lang.String preferencesKey, java.lang.String preferencesValue)
93 throws com.liferay.portal.SystemException {
94 return _layoutService.getLayoutReferences(companyId, portletId,
95 preferencesKey, preferencesValue);
96 }
97
98 public byte[] exportLayouts(long groupId, boolean privateLayout,
99 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
100 java.util.Date endDate)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException {
103 return _layoutService.exportLayouts(groupId, privateLayout,
104 parameterMap, startDate, endDate);
105 }
106
107 public byte[] exportLayouts(long groupId, boolean privateLayout,
108 long[] layoutIds, java.util.Map<String, String[]> parameterMap,
109 java.util.Date startDate, java.util.Date endDate)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException {
112 return _layoutService.exportLayouts(groupId, privateLayout, layoutIds,
113 parameterMap, startDate, endDate);
114 }
115
116 public com.liferay.portal.kernel.io.FileCacheOutputStream exportLayoutsAsStream(
117 long groupId, boolean privateLayout, long[] layoutIds,
118 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
119 java.util.Date endDate)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 return _layoutService.exportLayoutsAsStream(groupId, privateLayout,
123 layoutIds, parameterMap, startDate, endDate);
124 }
125
126 public byte[] exportPortletInfo(long plid, long groupId,
127 java.lang.String portletId,
128 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
129 java.util.Date endDate)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException {
132 return _layoutService.exportPortletInfo(plid, groupId, portletId,
133 parameterMap, startDate, endDate);
134 }
135
136 public com.liferay.portal.kernel.io.FileCacheOutputStream exportPortletInfoAsStream(
137 long plid, long groupId, java.lang.String portletId,
138 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
139 java.util.Date endDate)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 return _layoutService.exportPortletInfoAsStream(plid, groupId,
143 portletId, parameterMap, startDate, endDate);
144 }
145
146 public void importLayouts(long groupId, boolean privateLayout,
147 java.util.Map<String, String[]> parameterMap, java.io.File file)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 _layoutService.importLayouts(groupId, privateLayout, parameterMap, file);
151 }
152
153 public void importLayouts(long groupId, boolean privateLayout,
154 java.util.Map<String, String[]> parameterMap, byte[] bytes)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 _layoutService.importLayouts(groupId, privateLayout, parameterMap, bytes);
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 plid,
285 java.lang.String name, java.lang.String languageId)
286 throws com.liferay.portal.PortalException,
287 com.liferay.portal.SystemException {
288 return _layoutService.updateName(plid, name, languageId);
289 }
290
291 public com.liferay.portal.model.Layout updateName(long groupId,
292 boolean privateLayout, long layoutId, java.lang.String name,
293 java.lang.String languageId)
294 throws com.liferay.portal.PortalException,
295 com.liferay.portal.SystemException {
296 return _layoutService.updateName(groupId, privateLayout, layoutId,
297 name, languageId);
298 }
299
300 public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
301 long parentPlid)
302 throws com.liferay.portal.PortalException,
303 com.liferay.portal.SystemException {
304 return _layoutService.updateParentLayoutId(plid, parentPlid);
305 }
306
307 public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
308 boolean privateLayout, long layoutId, long parentLayoutId)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException {
311 return _layoutService.updateParentLayoutId(groupId, privateLayout,
312 layoutId, parentLayoutId);
313 }
314
315 public com.liferay.portal.model.Layout updatePriority(long plid,
316 int priority)
317 throws com.liferay.portal.PortalException,
318 com.liferay.portal.SystemException {
319 return _layoutService.updatePriority(plid, priority);
320 }
321
322 public com.liferay.portal.model.Layout updatePriority(long groupId,
323 boolean privateLayout, long layoutId, int priority)
324 throws com.liferay.portal.PortalException,
325 com.liferay.portal.SystemException {
326 return _layoutService.updatePriority(groupId, privateLayout, layoutId,
327 priority);
328 }
329
330 public LayoutService getWrappedLayoutService() {
331 return _layoutService;
332 }
333
334 private LayoutService _layoutService;
335 }