001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class WikiPageLocalServiceUtil {
033 public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
034 com.liferay.portlet.wiki.model.WikiPage wikiPage)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addWikiPage(wikiPage);
037 }
038
039 public static com.liferay.portlet.wiki.model.WikiPage createWikiPage(
040 long pageId) {
041 return getService().createWikiPage(pageId);
042 }
043
044 public static void deleteWikiPage(long pageId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteWikiPage(pageId);
048 }
049
050 public static void deleteWikiPage(
051 com.liferay.portlet.wiki.model.WikiPage wikiPage)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteWikiPage(wikiPage);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.wiki.model.WikiPage getWikiPage(
087 long pageId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getWikiPage(pageId);
091 }
092
093 public static com.liferay.portlet.wiki.model.WikiPage getWikiPageByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getWikiPageByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getWikiPages(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getWikiPages(start, end);
104 }
105
106 public static int getWikiPagesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getWikiPagesCount();
109 }
110
111 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
112 com.liferay.portlet.wiki.model.WikiPage wikiPage)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateWikiPage(wikiPage);
115 }
116
117 public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
118 com.liferay.portlet.wiki.model.WikiPage wikiPage, boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getService().updateWikiPage(wikiPage, merge);
121 }
122
123 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
124 long nodeId, java.lang.String title, double version,
125 java.lang.String content, java.lang.String summary, boolean minorEdit,
126 java.lang.String format, boolean head, java.lang.String parentTitle,
127 java.lang.String redirectTitle,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 return getService()
132 .addPage(userId, nodeId, title, version, content, summary,
133 minorEdit, format, head, parentTitle, redirectTitle, serviceContext);
134 }
135
136 public static com.liferay.portlet.wiki.model.WikiPage addPage(long userId,
137 long nodeId, java.lang.String title, java.lang.String content,
138 java.lang.String summary, boolean minorEdit,
139 com.liferay.portal.service.ServiceContext serviceContext)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService()
143 .addPage(userId, nodeId, title, content, summary, minorEdit,
144 serviceContext);
145 }
146
147 public static void addPageAttachment(long companyId,
148 java.lang.String dirName, java.util.Date modifiedDate,
149 java.lang.String fileName, java.io.InputStream inputStream)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 getService()
153 .addPageAttachment(companyId, dirName, modifiedDate, fileName,
154 inputStream);
155 }
156
157 public static void addPageAttachments(long nodeId, java.lang.String title,
158 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException {
161 getService().addPageAttachments(nodeId, title, files);
162 }
163
164 public static void addPageResources(long nodeId, java.lang.String title,
165 boolean addCommunityPermissions, boolean addGuestPermissions)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException {
168 getService()
169 .addPageResources(nodeId, title, addCommunityPermissions,
170 addGuestPermissions);
171 }
172
173 public static void addPageResources(long nodeId, java.lang.String title,
174 java.lang.String[] communityPermissions,
175 java.lang.String[] guestPermissions)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 getService()
179 .addPageResources(nodeId, title, communityPermissions,
180 guestPermissions);
181 }
182
183 public static void addPageResources(
184 com.liferay.portlet.wiki.model.WikiPage page,
185 boolean addCommunityPermissions, boolean addGuestPermissions)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 getService()
189 .addPageResources(page, addCommunityPermissions, addGuestPermissions);
190 }
191
192 public static void addPageResources(
193 com.liferay.portlet.wiki.model.WikiPage page,
194 java.lang.String[] communityPermissions,
195 java.lang.String[] guestPermissions)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 getService()
199 .addPageResources(page, communityPermissions, guestPermissions);
200 }
201
202 public static void changeParent(long userId, long nodeId,
203 java.lang.String title, java.lang.String newParentTitle,
204 com.liferay.portal.service.ServiceContext serviceContext)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 getService()
208 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
209 }
210
211 public static void deletePage(long nodeId, java.lang.String title)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 getService().deletePage(nodeId, title);
215 }
216
217 public static void deletePage(long nodeId, java.lang.String title,
218 double version)
219 throws com.liferay.portal.kernel.exception.PortalException,
220 com.liferay.portal.kernel.exception.SystemException {
221 getService().deletePage(nodeId, title, version);
222 }
223
224 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException {
227 getService().deletePage(page);
228 }
229
230 public static void deletePageAttachment(long nodeId,
231 java.lang.String title, java.lang.String fileName)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException {
234 getService().deletePageAttachment(nodeId, title, fileName);
235 }
236
237 public static void deletePages(long nodeId)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException {
240 getService().deletePages(nodeId);
241 }
242
243 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
244 long nodeId, boolean head, java.lang.String parentTitle)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getService().getChildren(nodeId, head, parentTitle);
247 }
248
249 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
250 long nodeId, java.lang.String title)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 return getService().getDraftPage(nodeId, title);
254 }
255
256 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
257 long nodeId, java.lang.String title)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException {
260 return getService().getIncomingLinks(nodeId, title);
261 }
262
263 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().getNoAssetPages();
266 }
267
268 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
269 long nodeId)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 return getService().getOrphans(nodeId);
273 }
274
275 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
276 long nodeId, java.lang.String title)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getService().getOutgoingLinks(nodeId, title);
280 }
281
282 public static com.liferay.portlet.wiki.model.WikiPage getPage(
283 long resourcePrimKey)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 return getService().getPage(resourcePrimKey);
287 }
288
289 public static com.liferay.portlet.wiki.model.WikiPage getPage(
290 long resourcePrimKey, java.lang.Boolean head)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException {
293 return getService().getPage(resourcePrimKey, head);
294 }
295
296 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
297 java.lang.String title)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException {
300 return getService().getPage(nodeId, title);
301 }
302
303 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
304 java.lang.String title, java.lang.Boolean head)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService().getPage(nodeId, title, head);
308 }
309
310 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
311 java.lang.String title, double version)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 return getService().getPage(nodeId, title, version);
315 }
316
317 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
318 long nodeId, java.lang.String title,
319 javax.portlet.PortletURL viewPageURL,
320 javax.portlet.PortletURL editPageURL,
321 java.lang.String attachmentURLPrefix)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 return getService()
325 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
326 attachmentURLPrefix);
327 }
328
329 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
330 com.liferay.portlet.wiki.model.WikiPage page,
331 javax.portlet.PortletURL viewPageURL,
332 javax.portlet.PortletURL editPageURL,
333 java.lang.String attachmentURLPrefix)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 return getService()
337 .getPageDisplay(page, viewPageURL, editPageURL,
338 attachmentURLPrefix);
339 }
340
341 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
342 long nodeId, boolean head, int start, int end)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getService().getPages(nodeId, head, start, end);
345 }
346
347 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
348 long nodeId, boolean head, int start, int end,
349 com.liferay.portal.kernel.util.OrderByComparator obc)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().getPages(nodeId, head, start, end, obc);
352 }
353
354 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
355 long nodeId, int start, int end)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService().getPages(nodeId, start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
361 long nodeId, int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator obc)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getService().getPages(nodeId, start, end, obc);
365 }
366
367 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
368 long resourcePrimKey, long nodeId, int status)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService().getPages(resourcePrimKey, nodeId, status);
371 }
372
373 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
374 long userId, long nodeId, int status, int start, int end)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getService().getPages(userId, nodeId, status, start, end);
377 }
378
379 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
380 long nodeId, java.lang.String title, boolean head, int start, int end)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getService().getPages(nodeId, title, head, start, end);
383 }
384
385 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
386 long nodeId, java.lang.String title, int start, int end)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getService().getPages(nodeId, title, start, end);
389 }
390
391 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
392 long nodeId, java.lang.String title, int start, int end,
393 com.liferay.portal.kernel.util.OrderByComparator obc)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getService().getPages(nodeId, title, start, end, obc);
396 }
397
398 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
399 java.lang.String format)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService().getPages(format);
402 }
403
404 public static int getPagesCount(long nodeId)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getService().getPagesCount(nodeId);
407 }
408
409 public static int getPagesCount(long nodeId, boolean head)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService().getPagesCount(nodeId, head);
412 }
413
414 public static int getPagesCount(long userId, long nodeId, int status)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getService().getPagesCount(userId, nodeId, status);
417 }
418
419 public static int getPagesCount(long nodeId, java.lang.String title)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getService().getPagesCount(nodeId, title);
422 }
423
424 public static int getPagesCount(long nodeId, java.lang.String title,
425 boolean head)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getService().getPagesCount(nodeId, title, head);
428 }
429
430 public static int getPagesCount(java.lang.String format)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getService().getPagesCount(format);
433 }
434
435 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
436 long nodeId, int start, int end)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 return getService().getRecentChanges(nodeId, start, end);
439 }
440
441 public static int getRecentChangesCount(long nodeId)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getService().getRecentChangesCount(nodeId);
444 }
445
446 public static boolean hasDraftPage(long nodeId, java.lang.String title)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 return getService().hasDraftPage(nodeId, title);
449 }
450
451 public static void movePage(long userId, long nodeId,
452 java.lang.String title, java.lang.String newTitle, boolean strict,
453 com.liferay.portal.service.ServiceContext serviceContext)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 getService()
457 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
458 }
459
460 public static void movePage(long userId, long nodeId,
461 java.lang.String title, java.lang.String newTitle,
462 com.liferay.portal.service.ServiceContext serviceContext)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException {
465 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
466 }
467
468 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
469 long userId, long nodeId, java.lang.String title, double version,
470 com.liferay.portal.service.ServiceContext serviceContext)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException {
473 return getService()
474 .revertPage(userId, nodeId, title, version, serviceContext);
475 }
476
477 public static void subscribePage(long userId, long nodeId,
478 java.lang.String title)
479 throws com.liferay.portal.kernel.exception.PortalException,
480 com.liferay.portal.kernel.exception.SystemException {
481 getService().subscribePage(userId, nodeId, title);
482 }
483
484 public static void unsubscribePage(long userId, long nodeId,
485 java.lang.String title)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 getService().unsubscribePage(userId, nodeId, title);
489 }
490
491 public static void updateAsset(long userId,
492 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
493 java.lang.String[] assetTagNames)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException {
496 getService().updateAsset(userId, page, assetCategoryIds, assetTagNames);
497 }
498
499 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
500 long userId, long nodeId, java.lang.String title, double version,
501 java.lang.String content, java.lang.String summary, boolean minorEdit,
502 java.lang.String format, java.lang.String parentTitle,
503 java.lang.String redirectTitle,
504 com.liferay.portal.service.ServiceContext serviceContext)
505 throws com.liferay.portal.kernel.exception.PortalException,
506 com.liferay.portal.kernel.exception.SystemException {
507 return getService()
508 .updatePage(userId, nodeId, title, version, content,
509 summary, minorEdit, format, parentTitle, redirectTitle,
510 serviceContext);
511 }
512
513 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
514 long userId, long resourcePrimKey, int status,
515 com.liferay.portal.service.ServiceContext serviceContext)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException {
518 return getService()
519 .updateStatus(userId, resourcePrimKey, status, serviceContext);
520 }
521
522 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
523 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
524 com.liferay.portal.service.ServiceContext serviceContext)
525 throws com.liferay.portal.kernel.exception.PortalException,
526 com.liferay.portal.kernel.exception.SystemException {
527 return getService().updateStatus(userId, page, status, serviceContext);
528 }
529
530 public static void validateTitle(java.lang.String title)
531 throws com.liferay.portal.kernel.exception.PortalException {
532 getService().validateTitle(title);
533 }
534
535 public static WikiPageLocalService getService() {
536 if (_service == null) {
537 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
538 }
539
540 return _service;
541 }
542
543 public void setService(WikiPageLocalService service) {
544 _service = service;
545 }
546
547 private static WikiPageLocalService _service;
548 }