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 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .addPage(userId, nodeId, title, content, summary, minorEdit,
119 serviceContext);
120 }
121
122 public static com.liferay.portlet.wiki.model.WikiPage addPage(
123 java.lang.String uuid, long userId, long nodeId,
124 java.lang.String title, double version, java.lang.String content,
125 java.lang.String summary, boolean minorEdit, java.lang.String format,
126 boolean head, java.lang.String parentTitle,
127 java.lang.String redirectTitle,
128 com.liferay.portal.service.ServiceContext serviceContext)
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 serviceContext);
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 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 getService()
188 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
189 }
190
191 public static void deletePage(long nodeId, java.lang.String title)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 getService().deletePage(nodeId, title);
195 }
196
197 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
198 throws com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException {
200 getService().deletePage(page);
201 }
202
203 public static void deletePageAttachment(long nodeId,
204 java.lang.String title, java.lang.String fileName)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException {
207 getService().deletePageAttachment(nodeId, title, fileName);
208 }
209
210 public static void deletePages(long nodeId)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException {
213 getService().deletePages(nodeId);
214 }
215
216 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
217 long nodeId, boolean head, java.lang.String parentTitle)
218 throws com.liferay.portal.SystemException {
219 return getService().getChildren(nodeId, head, parentTitle);
220 }
221
222 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
223 long nodeId, java.lang.String title)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException {
226 return getService().getIncomingLinks(nodeId, title);
227 }
228
229 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
230 throws com.liferay.portal.SystemException {
231 return getService().getNoAssetPages();
232 }
233
234 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
235 long nodeId)
236 throws com.liferay.portal.PortalException,
237 com.liferay.portal.SystemException {
238 return getService().getOrphans(nodeId);
239 }
240
241 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
242 long nodeId, java.lang.String title)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException {
245 return getService().getOutgoingLinks(nodeId, title);
246 }
247
248 public static com.liferay.portlet.wiki.model.WikiPage getPage(
249 long resourcePrimKey)
250 throws com.liferay.portal.PortalException,
251 com.liferay.portal.SystemException {
252 return getService().getPage(resourcePrimKey);
253 }
254
255 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
256 java.lang.String title)
257 throws com.liferay.portal.PortalException,
258 com.liferay.portal.SystemException {
259 return getService().getPage(nodeId, title);
260 }
261
262 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
263 java.lang.String title, double version)
264 throws com.liferay.portal.PortalException,
265 com.liferay.portal.SystemException {
266 return getService().getPage(nodeId, title, version);
267 }
268
269 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
270 long nodeId, java.lang.String title,
271 javax.portlet.PortletURL viewPageURL,
272 javax.portlet.PortletURL editPageURL,
273 java.lang.String attachmentURLPrefix)
274 throws com.liferay.portal.PortalException,
275 com.liferay.portal.SystemException {
276 return getService()
277 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
278 attachmentURLPrefix);
279 }
280
281 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
282 long nodeId, int start, int end)
283 throws com.liferay.portal.SystemException {
284 return getService().getPages(nodeId, start, end);
285 }
286
287 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
288 java.lang.String format) throws com.liferay.portal.SystemException {
289 return getService().getPages(format);
290 }
291
292 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
293 long nodeId, java.lang.String title, int start, int end)
294 throws com.liferay.portal.SystemException {
295 return getService().getPages(nodeId, title, start, end);
296 }
297
298 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
299 long nodeId, java.lang.String title, int start, int end,
300 com.liferay.portal.kernel.util.OrderByComparator obc)
301 throws com.liferay.portal.SystemException {
302 return getService().getPages(nodeId, title, start, end, obc);
303 }
304
305 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
306 long nodeId, boolean head, int start, int end)
307 throws com.liferay.portal.SystemException {
308 return getService().getPages(nodeId, head, start, end);
309 }
310
311 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
312 long nodeId, java.lang.String title, boolean head, int start, int end)
313 throws com.liferay.portal.SystemException {
314 return getService().getPages(nodeId, title, head, start, end);
315 }
316
317 public static int getPagesCount(long nodeId)
318 throws com.liferay.portal.SystemException {
319 return getService().getPagesCount(nodeId);
320 }
321
322 public static int getPagesCount(long nodeId, java.lang.String title)
323 throws com.liferay.portal.SystemException {
324 return getService().getPagesCount(nodeId, title);
325 }
326
327 public static int getPagesCount(long nodeId, boolean head)
328 throws com.liferay.portal.SystemException {
329 return getService().getPagesCount(nodeId, head);
330 }
331
332 public static int getPagesCount(long nodeId, java.lang.String title,
333 boolean head) throws com.liferay.portal.SystemException {
334 return getService().getPagesCount(nodeId, title, head);
335 }
336
337 public static int getPagesCount(java.lang.String format)
338 throws com.liferay.portal.SystemException {
339 return getService().getPagesCount(format);
340 }
341
342 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
343 long nodeId, int start, int end)
344 throws com.liferay.portal.SystemException {
345 return getService().getRecentChanges(nodeId, start, end);
346 }
347
348 public static int getRecentChangesCount(long nodeId)
349 throws com.liferay.portal.SystemException {
350 return getService().getRecentChangesCount(nodeId);
351 }
352
353 public static void movePage(long userId, long nodeId,
354 java.lang.String title, java.lang.String newTitle,
355 com.liferay.portal.service.ServiceContext serviceContext)
356 throws com.liferay.portal.PortalException,
357 com.liferay.portal.SystemException {
358 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
359 }
360
361 public static void movePage(long userId, long nodeId,
362 java.lang.String title, java.lang.String newTitle, boolean strict,
363 com.liferay.portal.service.ServiceContext serviceContext)
364 throws com.liferay.portal.PortalException,
365 com.liferay.portal.SystemException {
366 getService()
367 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
368 }
369
370 public static void reIndex(long resourcePrimKey)
371 throws com.liferay.portal.SystemException {
372 getService().reIndex(resourcePrimKey);
373 }
374
375 public static void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
376 throws com.liferay.portal.SystemException {
377 getService().reIndex(page);
378 }
379
380 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
381 long userId, long nodeId, java.lang.String title, double version,
382 com.liferay.portal.service.ServiceContext serviceContext)
383 throws com.liferay.portal.PortalException,
384 com.liferay.portal.SystemException {
385 return getService()
386 .revertPage(userId, nodeId, title, version, serviceContext);
387 }
388
389 public static void subscribePage(long userId, long nodeId,
390 java.lang.String title)
391 throws com.liferay.portal.PortalException,
392 com.liferay.portal.SystemException {
393 getService().subscribePage(userId, nodeId, title);
394 }
395
396 public static void unsubscribePage(long userId, long nodeId,
397 java.lang.String title)
398 throws com.liferay.portal.PortalException,
399 com.liferay.portal.SystemException {
400 getService().unsubscribePage(userId, nodeId, title);
401 }
402
403 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
404 long userId, long nodeId, java.lang.String title, double version,
405 java.lang.String content, java.lang.String summary, boolean minorEdit,
406 java.lang.String format, java.lang.String parentTitle,
407 java.lang.String redirectTitle,
408 com.liferay.portal.service.ServiceContext serviceContext)
409 throws com.liferay.portal.PortalException,
410 com.liferay.portal.SystemException {
411 return getService()
412 .updatePage(userId, nodeId, title, version, content,
413 summary, minorEdit, format, parentTitle, redirectTitle,
414 serviceContext);
415 }
416
417 public static void updateTagsAsset(long userId,
418 com.liferay.portlet.wiki.model.WikiPage page,
419 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
420 throws com.liferay.portal.PortalException,
421 com.liferay.portal.SystemException {
422 getService().updateTagsAsset(userId, page, tagsCategories, tagsEntries);
423 }
424
425 public static void validateTitle(java.lang.String title)
426 throws com.liferay.portal.PortalException {
427 getService().validateTitle(title);
428 }
429
430 public static WikiPageLocalService getService() {
431 if (_service == null) {
432 throw new RuntimeException("WikiPageLocalService is not set");
433 }
434
435 return _service;
436 }
437
438 public void setService(WikiPageLocalService service) {
439 _service = service;
440 }
441
442 private static WikiPageLocalService _service;
443 }