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