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