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, int start, int end)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getService().getPages(nodeId, start, end);
351 }
352
353 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
354 long resourcePrimKey, long nodeId, int status)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getService().getPages(resourcePrimKey, nodeId, status);
357 }
358
359 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
360 long userId, long nodeId, int status, int start, int end)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().getPages(userId, nodeId, status, start, end);
363 }
364
365 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
366 long nodeId, java.lang.String title, boolean head, int start, int end)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 return getService().getPages(nodeId, title, head, start, end);
369 }
370
371 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
372 long nodeId, java.lang.String title, int start, int end)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService().getPages(nodeId, title, start, end);
375 }
376
377 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
378 long nodeId, java.lang.String title, int start, int end,
379 com.liferay.portal.kernel.util.OrderByComparator obc)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 return getService().getPages(nodeId, title, start, end, obc);
382 }
383
384 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
385 java.lang.String format)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getService().getPages(format);
388 }
389
390 public static int getPagesCount(long nodeId)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getService().getPagesCount(nodeId);
393 }
394
395 public static int getPagesCount(long nodeId, boolean head)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getService().getPagesCount(nodeId, head);
398 }
399
400 public static int getPagesCount(long userId, long nodeId, int status)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return getService().getPagesCount(userId, nodeId, status);
403 }
404
405 public static int getPagesCount(long nodeId, java.lang.String title)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getService().getPagesCount(nodeId, title);
408 }
409
410 public static int getPagesCount(long nodeId, java.lang.String title,
411 boolean head)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getService().getPagesCount(nodeId, title, head);
414 }
415
416 public static int getPagesCount(java.lang.String format)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 return getService().getPagesCount(format);
419 }
420
421 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
422 long nodeId, int start, int end)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 return getService().getRecentChanges(nodeId, start, end);
425 }
426
427 public static int getRecentChangesCount(long nodeId)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getService().getRecentChangesCount(nodeId);
430 }
431
432 public static boolean hasDraftPage(long nodeId, java.lang.String title)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 return getService().hasDraftPage(nodeId, title);
435 }
436
437 public static void movePage(long userId, long nodeId,
438 java.lang.String title, java.lang.String newTitle, boolean strict,
439 com.liferay.portal.service.ServiceContext serviceContext)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException {
442 getService()
443 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
444 }
445
446 public static void movePage(long userId, long nodeId,
447 java.lang.String title, java.lang.String newTitle,
448 com.liferay.portal.service.ServiceContext serviceContext)
449 throws com.liferay.portal.kernel.exception.PortalException,
450 com.liferay.portal.kernel.exception.SystemException {
451 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
452 }
453
454 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
455 long userId, long nodeId, java.lang.String title, double version,
456 com.liferay.portal.service.ServiceContext serviceContext)
457 throws com.liferay.portal.kernel.exception.PortalException,
458 com.liferay.portal.kernel.exception.SystemException {
459 return getService()
460 .revertPage(userId, nodeId, title, version, serviceContext);
461 }
462
463 public static void subscribePage(long userId, long nodeId,
464 java.lang.String title)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException {
467 getService().subscribePage(userId, nodeId, title);
468 }
469
470 public static void unsubscribePage(long userId, long nodeId,
471 java.lang.String title)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 getService().unsubscribePage(userId, nodeId, title);
475 }
476
477 public static void updateAsset(long userId,
478 com.liferay.portlet.wiki.model.WikiPage page, long[] assetCategoryIds,
479 java.lang.String[] assetTagNames)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 getService().updateAsset(userId, page, assetCategoryIds, assetTagNames);
483 }
484
485 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
486 long userId, long nodeId, java.lang.String title, double version,
487 java.lang.String content, java.lang.String summary, boolean minorEdit,
488 java.lang.String format, java.lang.String parentTitle,
489 java.lang.String redirectTitle,
490 com.liferay.portal.service.ServiceContext serviceContext)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException {
493 return getService()
494 .updatePage(userId, nodeId, title, version, content,
495 summary, minorEdit, format, parentTitle, redirectTitle,
496 serviceContext);
497 }
498
499 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
500 long userId, long resourcePrimKey, int status,
501 com.liferay.portal.service.ServiceContext serviceContext)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException {
504 return getService()
505 .updateStatus(userId, resourcePrimKey, status, serviceContext);
506 }
507
508 public static com.liferay.portlet.wiki.model.WikiPage updateStatus(
509 long userId, com.liferay.portlet.wiki.model.WikiPage page, int status,
510 com.liferay.portal.service.ServiceContext serviceContext)
511 throws com.liferay.portal.kernel.exception.PortalException,
512 com.liferay.portal.kernel.exception.SystemException {
513 return getService().updateStatus(userId, page, status, serviceContext);
514 }
515
516 public static void validateTitle(java.lang.String title)
517 throws com.liferay.portal.kernel.exception.PortalException {
518 getService().validateTitle(title);
519 }
520
521 public static WikiPageLocalService getService() {
522 if (_service == null) {
523 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
524 }
525
526 return _service;
527 }
528
529 public void setService(WikiPageLocalService service) {
530 _service = service;
531 }
532
533 private static WikiPageLocalService _service;
534 }