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