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