1
14
15 package com.liferay.portlet.wiki.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class WikiPageLocalServiceUtil {
40 public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
41 com.liferay.portlet.wiki.model.WikiPage wikiPage)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addWikiPage(wikiPage);
44 }
45
46 public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
47 long pageId) {
48 return getService().createWikiPage(pageId);
49 }
50
51 public static void deleteWikiPage(long pageId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteWikiPage(pageId);
55 }
56
57 public static void deleteWikiPage(
58 com.liferay.portlet.wiki.model.WikiPage wikiPage)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteWikiPage(wikiPage);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
91 long pageId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getWikiPage(pageId);
95 }
96
97 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getWikiPages(start, end);
101 }
102
103 public static int getWikiPagesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getWikiPagesCount();
106 }
107
108 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
109 com.liferay.portlet.wiki.model.WikiPage wikiPage)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateWikiPage(wikiPage);
112 }
113
114 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
115 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updateWikiPage(wikiPage, merge);
118 }
119
120 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
121 long nodeId, java.lang.String title, java.lang.String content,
122 java.lang.String summary, boolean minorEdit,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .addPage(userId, nodeId, title, content, summary, minorEdit,
128 serviceContext);
129 }
130
131 public static com.liferay.portlet.wiki.model.WikiPage addPage(
132 java.lang.String uuid, long userId, long nodeId,
133 java.lang.String title, double version, java.lang.String content,
134 java.lang.String summary, boolean minorEdit, java.lang.String format,
135 boolean head, java.lang.String parentTitle,
136 java.lang.String redirectTitle,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .addPage(uuid, userId, nodeId, title, version, content,
142 summary, minorEdit, format, head, parentTitle, redirectTitle,
143 serviceContext);
144 }
145
146 public static void addPageAttachments(long nodeId, java.lang.String title,
147 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 getService().addPageAttachments(nodeId, title, files);
151 }
152
153 public static void addPageResources(long nodeId, java.lang.String title,
154 boolean addCommunityPermissions, boolean addGuestPermissions)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 getService()
158 .addPageResources(nodeId, title, addCommunityPermissions,
159 addGuestPermissions);
160 }
161
162 public static void addPageResources(
163 com.liferay.portlet.wiki.model.WikiPage page,
164 boolean addCommunityPermissions, boolean addGuestPermissions)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException {
167 getService()
168 .addPageResources(page, addCommunityPermissions, addGuestPermissions);
169 }
170
171 public static void addPageResources(long nodeId, java.lang.String title,
172 java.lang.String[] communityPermissions,
173 java.lang.String[] guestPermissions)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException {
176 getService()
177 .addPageResources(nodeId, title, communityPermissions,
178 guestPermissions);
179 }
180
181 public static void addPageResources(
182 com.liferay.portlet.wiki.model.WikiPage page,
183 java.lang.String[] communityPermissions,
184 java.lang.String[] guestPermissions)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 getService()
188 .addPageResources(page, communityPermissions, guestPermissions);
189 }
190
191 public static void changeParent(long userId, long nodeId,
192 java.lang.String title, java.lang.String newParentTitle,
193 com.liferay.portal.service.ServiceContext serviceContext)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException {
196 getService()
197 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
198 }
199
200 public static void deletePage(long nodeId, java.lang.String title)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 getService().deletePage(nodeId, title);
204 }
205
206 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 getService().deletePage(page);
210 }
211
212 public static void deletePageAttachment(long nodeId,
213 java.lang.String title, java.lang.String fileName)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException {
216 getService().deletePageAttachment(nodeId, title, fileName);
217 }
218
219 public static void deletePages(long nodeId)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException {
222 getService().deletePages(nodeId);
223 }
224
225 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
226 long nodeId, boolean head, java.lang.String parentTitle)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getChildren(nodeId, head, parentTitle);
229 }
230
231 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
232 long nodeId, java.lang.String title)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 return getService().getIncomingLinks(nodeId, title);
236 }
237
238 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getNoAssetPages();
241 }
242
243 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
244 long nodeId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 return getService().getOrphans(nodeId);
248 }
249
250 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
251 long nodeId, java.lang.String title)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 return getService().getOutgoingLinks(nodeId, title);
255 }
256
257 public static com.liferay.portlet.wiki.model.WikiPage getPage(
258 long resourcePrimKey)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException {
261 return getService().getPage(resourcePrimKey);
262 }
263
264 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
265 java.lang.String title)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService().getPage(nodeId, title);
269 }
270
271 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
272 java.lang.String title, double version)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return getService().getPage(nodeId, title, version);
276 }
277
278 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
279 long nodeId, java.lang.String title,
280 javax.portlet.PortletURL viewPageURL,
281 javax.portlet.PortletURL editPageURL,
282 java.lang.String attachmentURLPrefix)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException {
285 return getService()
286 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
287 attachmentURLPrefix);
288 }
289
290 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
291 long nodeId, int start, int end)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getService().getPages(nodeId, start, end);
294 }
295
296 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
297 java.lang.String format)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getPages(format);
300 }
301
302 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
303 long nodeId, java.lang.String title, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return getService().getPages(nodeId, title, start, end);
306 }
307
308 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
309 long nodeId, java.lang.String title, int start, int end,
310 com.liferay.portal.kernel.util.OrderByComparator obc)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().getPages(nodeId, title, start, end, obc);
313 }
314
315 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
316 long nodeId, boolean head, int start, int end)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().getPages(nodeId, head, start, end);
319 }
320
321 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
322 long nodeId, java.lang.String title, boolean head, int start, int end)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getService().getPages(nodeId, title, head, start, end);
325 }
326
327 public static int getPagesCount(long nodeId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService().getPagesCount(nodeId);
330 }
331
332 public static int getPagesCount(long nodeId, java.lang.String title)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().getPagesCount(nodeId, title);
335 }
336
337 public static int getPagesCount(long nodeId, boolean head)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getPagesCount(nodeId, head);
340 }
341
342 public static int getPagesCount(long nodeId, java.lang.String title,
343 boolean head)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 return getService().getPagesCount(nodeId, title, head);
346 }
347
348 public static int getPagesCount(java.lang.String format)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getService().getPagesCount(format);
351 }
352
353 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
354 long nodeId, int start, int end)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getService().getRecentChanges(nodeId, start, end);
357 }
358
359 public static int getRecentChangesCount(long nodeId)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getService().getRecentChangesCount(nodeId);
362 }
363
364 public static void movePage(long userId, long nodeId,
365 java.lang.String title, java.lang.String newTitle,
366 com.liferay.portal.service.ServiceContext serviceContext)
367 throws com.liferay.portal.kernel.exception.PortalException,
368 com.liferay.portal.kernel.exception.SystemException {
369 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
370 }
371
372 public static void movePage(long userId, long nodeId,
373 java.lang.String title, java.lang.String newTitle, boolean strict,
374 com.liferay.portal.service.ServiceContext serviceContext)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 getService()
378 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
379 }
380
381 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
382 long userId, long nodeId, java.lang.String title, double version,
383 com.liferay.portal.service.ServiceContext serviceContext)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException {
386 return getService()
387 .revertPage(userId, nodeId, title, version, serviceContext);
388 }
389
390 public static void subscribePage(long userId, long nodeId,
391 java.lang.String title)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException {
394 getService().subscribePage(userId, nodeId, title);
395 }
396
397 public static void unsubscribePage(long userId, long nodeId,
398 java.lang.String title)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException {
401 getService().unsubscribePage(userId, nodeId, title);
402 }
403
404 public static void updateAsset(long userId,
405 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
406 java.lang.String[] assetTagNames)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException {
409 getService().updateAsset(userId, page, assetCategoryIds, assetTagNames);
410 }
411
412 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
413 long userId, long nodeId, java.lang.String title, double version,
414 java.lang.String content, java.lang.String summary, boolean minorEdit,
415 java.lang.String format, java.lang.String parentTitle,
416 java.lang.String redirectTitle,
417 com.liferay.portal.service.ServiceContext serviceContext)
418 throws com.liferay.portal.kernel.exception.PortalException,
419 com.liferay.portal.kernel.exception.SystemException {
420 return getService()
421 .updatePage(userId, nodeId, title, version, content,
422 summary, minorEdit, format, parentTitle, redirectTitle,
423 serviceContext);
424 }
425
426 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
427 long userId, long resourcePrimKey, int status)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException {
430 return getService().updateStatus(userId, resourcePrimKey, status);
431 }
432
433 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
434 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException {
437 return getService().updateStatus(userId, page, status);
438 }
439
440 public static void validateTitle(java.lang.String title)
441 throws com.liferay.portal.kernel.exception.PortalException {
442 getService().validateTitle(title);
443 }
444
445 public static WikiPageLocalService getService() {
446 if (_service == null) {
447 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
448 }
449
450 return _service;
451 }
452
453 public void setService(WikiPageLocalService service) {
454 _service = service;
455 }
456
457 private static WikiPageLocalService _service;
458 }