1
22
23 package com.liferay.portlet.wiki.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.wiki.service.WikiPageServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
83 public class WikiPageServiceSoap {
84 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
85 long nodeId, java.lang.String title, java.lang.String content,
86 java.lang.String summary, boolean minorEdit,
87 com.liferay.portal.service.ServiceContext serviceContext)
88 throws RemoteException {
89 try {
90 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
91 title, content, summary, minorEdit, serviceContext);
92
93 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
94 }
95 catch (Exception e) {
96 _log.error(e, e);
97
98 throw new RemoteException(e.getMessage());
99 }
100 }
101
102 public static com.liferay.portlet.wiki.model.WikiPageSoap addPage(
103 long nodeId, java.lang.String title, java.lang.String content,
104 java.lang.String summary, boolean minorEdit, java.lang.String format,
105 java.lang.String parentTitle, java.lang.String redirectTitle,
106 com.liferay.portal.service.ServiceContext serviceContext)
107 throws RemoteException {
108 try {
109 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage(nodeId,
110 title, content, summary, minorEdit, format, parentTitle,
111 redirectTitle, serviceContext);
112
113 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static void addPageAttachments(long nodeId, java.lang.String title,
123 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
124 throws RemoteException {
125 try {
126 WikiPageServiceUtil.addPageAttachments(nodeId, title, files);
127 }
128 catch (Exception e) {
129 _log.error(e, e);
130
131 throw new RemoteException(e.getMessage());
132 }
133 }
134
135 public static void changeParent(long nodeId, java.lang.String title,
136 java.lang.String newParentTitle,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws RemoteException {
139 try {
140 WikiPageServiceUtil.changeParent(nodeId, title, newParentTitle,
141 serviceContext);
142 }
143 catch (Exception e) {
144 _log.error(e, e);
145
146 throw new RemoteException(e.getMessage());
147 }
148 }
149
150 public static void deletePage(long nodeId, java.lang.String title)
151 throws RemoteException {
152 try {
153 WikiPageServiceUtil.deletePage(nodeId, title);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 public static void deletePageAttachment(long nodeId,
163 java.lang.String title, java.lang.String fileName)
164 throws RemoteException {
165 try {
166 WikiPageServiceUtil.deletePageAttachment(nodeId, title, fileName);
167 }
168 catch (Exception e) {
169 _log.error(e, e);
170
171 throw new RemoteException(e.getMessage());
172 }
173 }
174
175 public static com.liferay.portlet.wiki.model.WikiPageSoap[] getNodePages(
176 long nodeId, int max) throws RemoteException {
177 try {
178 java.util.List<com.liferay.portlet.wiki.model.WikiPage> returnValue = WikiPageServiceUtil.getNodePages(nodeId,
179 max);
180
181 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModels(returnValue);
182 }
183 catch (Exception e) {
184 _log.error(e, e);
185
186 throw new RemoteException(e.getMessage());
187 }
188 }
189
190 public static java.lang.String getNodePagesRSS(long nodeId, int max,
191 java.lang.String type, double version, java.lang.String displayStyle,
192 java.lang.String feedURL, java.lang.String entryURL)
193 throws RemoteException {
194 try {
195 java.lang.String returnValue = WikiPageServiceUtil.getNodePagesRSS(nodeId,
196 max, type, version, displayStyle, feedURL, entryURL);
197
198 return returnValue;
199 }
200 catch (Exception e) {
201 _log.error(e, e);
202
203 throw new RemoteException(e.getMessage());
204 }
205 }
206
207 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
208 long nodeId, java.lang.String title) throws RemoteException {
209 try {
210 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
211 title);
212
213 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
214 }
215 catch (Exception e) {
216 _log.error(e, e);
217
218 throw new RemoteException(e.getMessage());
219 }
220 }
221
222 public static com.liferay.portlet.wiki.model.WikiPageSoap getPage(
223 long nodeId, java.lang.String title, double version)
224 throws RemoteException {
225 try {
226 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId,
227 title, version);
228
229 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
230 }
231 catch (Exception e) {
232 _log.error(e, e);
233
234 throw new RemoteException(e.getMessage());
235 }
236 }
237
238 public static java.lang.String getPagesRSS(long companyId, long nodeId,
239 java.lang.String title, int max, java.lang.String type, double version,
240 java.lang.String displayStyle, java.lang.String feedURL,
241 java.lang.String entryURL, String locale) throws RemoteException {
242 try {
243 java.lang.String returnValue = WikiPageServiceUtil.getPagesRSS(companyId,
244 nodeId, title, max, type, version, displayStyle, feedURL,
245 entryURL, new java.util.Locale(locale));
246
247 return returnValue;
248 }
249 catch (Exception e) {
250 _log.error(e, e);
251
252 throw new RemoteException(e.getMessage());
253 }
254 }
255
256 public static void movePage(long nodeId, java.lang.String title,
257 java.lang.String newTitle,
258 com.liferay.portal.service.ServiceContext serviceContext)
259 throws RemoteException {
260 try {
261 WikiPageServiceUtil.movePage(nodeId, title, newTitle, serviceContext);
262 }
263 catch (Exception e) {
264 _log.error(e, e);
265
266 throw new RemoteException(e.getMessage());
267 }
268 }
269
270 public static com.liferay.portlet.wiki.model.WikiPageSoap revertPage(
271 long nodeId, java.lang.String title, double version,
272 com.liferay.portal.service.ServiceContext serviceContext)
273 throws RemoteException {
274 try {
275 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.revertPage(nodeId,
276 title, version, serviceContext);
277
278 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
279 }
280 catch (Exception e) {
281 _log.error(e, e);
282
283 throw new RemoteException(e.getMessage());
284 }
285 }
286
287 public static void subscribePage(long nodeId, java.lang.String title)
288 throws RemoteException {
289 try {
290 WikiPageServiceUtil.subscribePage(nodeId, title);
291 }
292 catch (Exception e) {
293 _log.error(e, e);
294
295 throw new RemoteException(e.getMessage());
296 }
297 }
298
299 public static void unsubscribePage(long nodeId, java.lang.String title)
300 throws RemoteException {
301 try {
302 WikiPageServiceUtil.unsubscribePage(nodeId, title);
303 }
304 catch (Exception e) {
305 _log.error(e, e);
306
307 throw new RemoteException(e.getMessage());
308 }
309 }
310
311 public static com.liferay.portlet.wiki.model.WikiPageSoap updatePage(
312 long nodeId, java.lang.String title, double version,
313 java.lang.String content, java.lang.String summary, boolean minorEdit,
314 java.lang.String format, java.lang.String parentTitle,
315 java.lang.String redirectTitle,
316 com.liferay.portal.service.ServiceContext serviceContext)
317 throws RemoteException {
318 try {
319 com.liferay.portlet.wiki.model.WikiPage returnValue = WikiPageServiceUtil.updatePage(nodeId,
320 title, version, content, summary, minorEdit, format,
321 parentTitle, redirectTitle, serviceContext);
322
323 return com.liferay.portlet.wiki.model.WikiPageSoap.toSoapModel(returnValue);
324 }
325 catch (Exception e) {
326 _log.error(e, e);
327
328 throw new RemoteException(e.getMessage());
329 }
330 }
331
332 private static Log _log = LogFactoryUtil.getLog(WikiPageServiceSoap.class);
333 }