001
014
015 package com.liferay.portlet.wiki.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.LocaleUtil;
020
021 import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
068 public class WikiPageServiceSoap {
069 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
070 long nodeId, java.lang.String title, java.lang.String content,
071 java.lang.String summary, boolean minorEdit,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws RemoteException {
074 try {
075 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
076 title, content, summary, minorEdit, serviceContext);
077
078 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
079 }
080 catch (Exception e) {
081 _log.error(e, e);
082
083 throw new RemoteException(e.getMessage());
084 }
085 }
086
087 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
088 long nodeId, java.lang.String title, java.lang.String content,
089 java.lang.String summary, boolean minorEdit, java.lang.String format,
090 java.lang.String parentTitle, java.lang.String redirectTitle,
091 com.liferay.portal.service.ServiceContext serviceContext)
092 throws RemoteException {
093 try {
094 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
095 title, content, summary, minorEdit, format, parentTitle,
096 redirectTitle, serviceContext);
097
098 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static void addPageAttachments(long nodeId, java.lang.String title,
108 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStream)
109 throws RemoteException {
110 try {
111 WikiPageServiceUtil.addPageAttachments(nodeId, title, inputStream);
112 }
113 catch (Exception e) {
114 _log.error(e, e);
115
116 throw new RemoteException(e.getMessage());
117 }
118 }
119
120 public static void changeParent(long nodeId, java.lang.String title,
121 java.lang.String newParentTitle,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws RemoteException {
124 try {
125 WikiPageServiceUtil.changeParent(nodeId, title, newParentTitle,
126 serviceContext);
127 }
128 catch (Exception e) {
129 _log.error(e, e);
130
131 throw new RemoteException(e.getMessage());
132 }
133 }
134
135 public static void deletePage(long nodeId, java.lang.String title)
136 throws RemoteException {
137 try {
138 WikiPageServiceUtil.deletePage(nodeId, title);
139 }
140 catch (Exception e) {
141 _log.error(e, e);
142
143 throw new RemoteException(e.getMessage());
144 }
145 }
146
147 public static void deletePage(long nodeId, java.lang.String title,
148 double version) throws RemoteException {
149 try {
150 WikiPageServiceUtil.deletePage(nodeId, title, version);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 public static void deletePageAttachment(long nodeId,
160 java.lang.String title, java.lang.String fileName)
161 throws RemoteException {
162 try {
163 WikiPageServiceUtil.deletePageAttachment(nodeId, title, fileName);
164 }
165 catch (Exception e) {
166 _log.error(e, e);
167
168 throw new RemoteException(e.getMessage());
169 }
170 }
171
172 public static void deleteTempPageAttachment(long nodeId,
173 java.lang.String fileName, java.lang.String tempFolderName)
174 throws RemoteException {
175 try {
176 WikiPageServiceUtil.deleteTempPageAttachment(nodeId, fileName,
177 tempFolderName);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 public static com.liferay.portlet.wiki.model.WikiPageSoap getDraftPage(
187 long nodeId, java.lang.String title) throws RemoteException {
188 try {
189 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getDraftPage(nodeId,
190 title);
191
192 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
193 }
194 catch (Exception e) {
195 _log.error(e, e);
196
197 throw new RemoteException(e.getMessage());
198 }
199 }
200
201 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getNodePages(
202 long nodeId, int max) throws RemoteException {
203 try {
204 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getNodePages(nodeId,
205 max);
206
207 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
208 }
209 catch (Exception e) {
210 _log.error(e, e);
211
212 throw new RemoteException(e.getMessage());
213 }
214 }
215
216 public static java.lang.String getNodePagesRSS(long nodeId, int max,
217 java.lang.String type, double version, java.lang.String displayStyle,
218 java.lang.String feedURL, java.lang.String entryURL)
219 throws RemoteException {
220 try {
221 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
222 max, type, version, displayStyle, feedURL, entryURL);
223
224 return returnValue;
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
234 long nodeId, java.lang.String title) throws RemoteException {
235 try {
236 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
237 title);
238
239 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
240 }
241 catch (Exception e) {
242 _log.error(e, e);
243
244 throw new RemoteException(e.getMessage());
245 }
246 }
247
248 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
249 long nodeId, java.lang.String title, java.lang.Boolean head)
250 throws RemoteException {
251 try {
252 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
253 title, head);
254
255 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
256 }
257 catch (Exception e) {
258 _log.error(e, e);
259
260 throw new RemoteException(e.getMessage());
261 }
262 }
263
264 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
265 long nodeId, java.lang.String title, double version)
266 throws RemoteException {
267 try {
268 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
269 title, version);
270
271 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
272 }
273 catch (Exception e) {
274 _log.error(e, e);
275
276 throw new RemoteException(e.getMessage());
277 }
278 }
279
280 public static java.lang.String getPagesRSS(long companyId, long nodeId,
281 java.lang.String title, int max, java.lang.String type, double version,
282 java.lang.String displayStyle, java.lang.String feedURL,
283 java.lang.String entryURL, String locale) throws RemoteException {
284 try {
285 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
286 nodeId, title, max, type, version, displayStyle, feedURL,
287 entryURL, LocaleUtil.fromLanguageId(locale));
288
289 return returnValue;
290 }
291 catch (Exception e) {
292 _log.error(e, e);
293
294 throw new RemoteException(e.getMessage());
295 }
296 }
297
298 public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
299 java.lang.String tempFolderName) throws RemoteException {
300 try {
301 java.lang.String[] returnValue = WikiPageServiceUtil.getTempPageAttachmentNames(nodeId,
302 tempFolderName);
303
304 return returnValue;
305 }
306 catch (Exception e) {
307 _log.error(e, e);
308
309 throw new RemoteException(e.getMessage());
310 }
311 }
312
313 public static void movePage(long nodeId, java.lang.String title,
314 java.lang.String newTitle,
315 com.liferay.portal.service.ServiceContext serviceContext)
316 throws RemoteException {
317 try {
318 WikiPageServiceUtil.movePage(nodeId, title, newTitle, serviceContext);
319 }
320 catch (Exception e) {
321 _log.error(e, e);
322
323 throw new RemoteException(e.getMessage());
324 }
325 }
326
327 public static com.liferay.portlet.wiki.model.WikiPageSoap revertPage(
328 long nodeId, java.lang.String title, double version,
329 com.liferay.portal.service.ServiceContext serviceContext)
330 throws RemoteException {
331 try {
332 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.revertPage(nodeId,
333 title, version, serviceContext);
334
335 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
336 }
337 catch (Exception e) {
338 _log.error(e, e);
339
340 throw new RemoteException(e.getMessage());
341 }
342 }
343
344 public static void subscribePage(long nodeId, java.lang.String title)
345 throws RemoteException {
346 try {
347 WikiPageServiceUtil.subscribePage(nodeId, title);
348 }
349 catch (Exception e) {
350 _log.error(e, e);
351
352 throw new RemoteException(e.getMessage());
353 }
354 }
355
356 public static void unsubscribePage(long nodeId, java.lang.String title)
357 throws RemoteException {
358 try {
359 WikiPageServiceUtil.unsubscribePage(nodeId, title);
360 }
361 catch (Exception e) {
362 _log.error(e, e);
363
364 throw new RemoteException(e.getMessage());
365 }
366 }
367
368 public static com.liferay.portlet.wiki.model.WikiPageSoap updatePage(
369 long nodeId, java.lang.String title, double version,
370 java.lang.String content, java.lang.String summary, boolean minorEdit,
371 java.lang.String format, java.lang.String parentTitle,
372 java.lang.String redirectTitle,
373 com.liferay.portal.service.ServiceContext serviceContext)
374 throws RemoteException {
375 try {
376 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.updatePage(nodeId,
377 title, version, content, summary, minorEdit, format,
378 parentTitle, redirectTitle, serviceContext);
379
380 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
381 }
382 catch (Exception e) {
383 _log.error(e, e);
384
385 throw new RemoteException(e.getMessage());
386 }
387 }
388
389 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceSoap.class);
390 }