1
22
23 package com.liferay.portlet.wiki.service;
24
25 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26
27
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 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 return getService()
119 .addPage(userId, nodeId, title, content, summary, minorEdit,
120 serviceContext);
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,
129 com.liferay.portal.service.ServiceContext serviceContext)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException {
132 return getService()
133 .addPage(uuid, userId, nodeId, title, version, content,
134 summary, minorEdit, format, head, parentTitle, redirectTitle,
135 serviceContext);
136 }
137
138 public static void addPageAttachments(long nodeId, java.lang.String title,
139 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 getService().addPageAttachments(nodeId, title, files);
143 }
144
145 public static void addPageResources(long nodeId, java.lang.String title,
146 boolean addCommunityPermissions, boolean addGuestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 getService()
150 .addPageResources(nodeId, title, addCommunityPermissions,
151 addGuestPermissions);
152 }
153
154 public static void addPageResources(
155 com.liferay.portlet.wiki.model.WikiPage page,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 getService()
160 .addPageResources(page, addCommunityPermissions, addGuestPermissions);
161 }
162
163 public static void addPageResources(long nodeId, java.lang.String title,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 getService()
169 .addPageResources(nodeId, title, communityPermissions,
170 guestPermissions);
171 }
172
173 public static void addPageResources(
174 com.liferay.portlet.wiki.model.WikiPage page,
175 java.lang.String[] communityPermissions,
176 java.lang.String[] guestPermissions)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 getService()
180 .addPageResources(page, communityPermissions, guestPermissions);
181 }
182
183 public static void changeParent(long userId, long nodeId,
184 java.lang.String title, java.lang.String newParentTitle,
185 com.liferay.portal.service.ServiceContext serviceContext)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 getService()
189 .changeParent(userId, nodeId, title, newParentTitle, serviceContext);
190 }
191
192 public static void deletePage(long nodeId, java.lang.String title)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 getService().deletePage(nodeId, title);
196 }
197
198 public static void deletePage(com.liferay.portlet.wiki.model.WikiPage page)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 getService().deletePage(page);
202 }
203
204 public static void deletePageAttachment(long nodeId,
205 java.lang.String title, java.lang.String fileName)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 getService().deletePageAttachment(nodeId, title, fileName);
209 }
210
211 public static void deletePages(long nodeId)
212 throws com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException {
214 getService().deletePages(nodeId);
215 }
216
217 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
218 long nodeId, boolean head, java.lang.String parentTitle)
219 throws com.liferay.portal.SystemException {
220 return getService().getChildren(nodeId, head, parentTitle);
221 }
222
223 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getIncomingLinks(
224 long nodeId, java.lang.String title)
225 throws com.liferay.portal.PortalException,
226 com.liferay.portal.SystemException {
227 return getService().getIncomingLinks(nodeId, title);
228 }
229
230 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNoAssetPages()
231 throws com.liferay.portal.SystemException {
232 return getService().getNoAssetPages();
233 }
234
235 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
236 long nodeId)
237 throws com.liferay.portal.PortalException,
238 com.liferay.portal.SystemException {
239 return getService().getOrphans(nodeId);
240 }
241
242 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOutgoingLinks(
243 long nodeId, java.lang.String title)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException {
246 return getService().getOutgoingLinks(nodeId, title);
247 }
248
249 public static com.liferay.portlet.wiki.model.WikiPage getPage(
250 long resourcePrimKey)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException {
253 return getService().getPage(resourcePrimKey);
254 }
255
256 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
257 java.lang.String title)
258 throws com.liferay.portal.PortalException,
259 com.liferay.portal.SystemException {
260 return getService().getPage(nodeId, title);
261 }
262
263 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
264 java.lang.String title, double version)
265 throws com.liferay.portal.PortalException,
266 com.liferay.portal.SystemException {
267 return getService().getPage(nodeId, title, version);
268 }
269
270 public static com.liferay.portlet.wiki.model.WikiPageDisplay getPageDisplay(
271 long nodeId, java.lang.String title,
272 javax.portlet.PortletURL viewPageURL,
273 javax.portlet.PortletURL editPageURL,
274 java.lang.String attachmentURLPrefix)
275 throws com.liferay.portal.PortalException,
276 com.liferay.portal.SystemException {
277 return getService()
278 .getPageDisplay(nodeId, title, viewPageURL, editPageURL,
279 attachmentURLPrefix);
280 }
281
282 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
283 long nodeId, int start, int end)
284 throws com.liferay.portal.SystemException {
285 return getService().getPages(nodeId, start, end);
286 }
287
288 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
289 java.lang.String format) throws com.liferay.portal.SystemException {
290 return getService().getPages(format);
291 }
292
293 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
294 long nodeId, java.lang.String title, int start, int end)
295 throws com.liferay.portal.SystemException {
296 return getService().getPages(nodeId, title, start, end);
297 }
298
299 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
300 long nodeId, java.lang.String title, int start, int end,
301 com.liferay.portal.kernel.util.OrderByComparator obc)
302 throws com.liferay.portal.SystemException {
303 return getService().getPages(nodeId, title, start, end, obc);
304 }
305
306 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
307 long nodeId, boolean head, int start, int end)
308 throws com.liferay.portal.SystemException {
309 return getService().getPages(nodeId, head, start, end);
310 }
311
312 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
313 long nodeId, java.lang.String title, boolean head, int start, int end)
314 throws com.liferay.portal.SystemException {
315 return getService().getPages(nodeId, title, head, start, end);
316 }
317
318 public static int getPagesCount(long nodeId)
319 throws com.liferay.portal.SystemException {
320 return getService().getPagesCount(nodeId);
321 }
322
323 public static int getPagesCount(long nodeId, java.lang.String title)
324 throws com.liferay.portal.SystemException {
325 return getService().getPagesCount(nodeId, title);
326 }
327
328 public static int getPagesCount(long nodeId, boolean head)
329 throws com.liferay.portal.SystemException {
330 return getService().getPagesCount(nodeId, head);
331 }
332
333 public static int getPagesCount(long nodeId, java.lang.String title,
334 boolean head) throws com.liferay.portal.SystemException {
335 return getService().getPagesCount(nodeId, title, head);
336 }
337
338 public static int getPagesCount(java.lang.String format)
339 throws com.liferay.portal.SystemException {
340 return getService().getPagesCount(format);
341 }
342
343 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
344 long nodeId, int start, int end)
345 throws com.liferay.portal.SystemException {
346 return getService().getRecentChanges(nodeId, start, end);
347 }
348
349 public static int getRecentChangesCount(long nodeId)
350 throws com.liferay.portal.SystemException {
351 return getService().getRecentChangesCount(nodeId);
352 }
353
354 public static void movePage(long userId, long nodeId,
355 java.lang.String title, java.lang.String newTitle,
356 com.liferay.portal.service.ServiceContext serviceContext)
357 throws com.liferay.portal.PortalException,
358 com.liferay.portal.SystemException {
359 getService().movePage(userId, nodeId, title, newTitle, serviceContext);
360 }
361
362 public static void movePage(long userId, long nodeId,
363 java.lang.String title, java.lang.String newTitle, boolean strict,
364 com.liferay.portal.service.ServiceContext serviceContext)
365 throws com.liferay.portal.PortalException,
366 com.liferay.portal.SystemException {
367 getService()
368 .movePage(userId, nodeId, title, newTitle, strict, serviceContext);
369 }
370
371 public static void reIndex(long resourcePrimKey)
372 throws com.liferay.portal.SystemException {
373 getService().reIndex(resourcePrimKey);
374 }
375
376 public static void reIndex(com.liferay.portlet.wiki.model.WikiPage page)
377 throws com.liferay.portal.SystemException {
378 getService().reIndex(page);
379 }
380
381 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
382 long userId, long nodeId, java.lang.String title, double version,
383 com.liferay.portal.service.ServiceContext serviceContext)
384 throws com.liferay.portal.PortalException,
385 com.liferay.portal.SystemException {
386 return getService()
387 .revertPage(userId, nodeId, title, version, serviceContext);
388 }
389
390 public static void subscribePage(long userId, long nodeId,
391 java.lang.String title)
392 throws com.liferay.portal.PortalException,
393 com.liferay.portal.SystemException {
394 getService().subscribePage(userId, nodeId, title);
395 }
396
397 public static void unsubscribePage(long userId, long nodeId,
398 java.lang.String title)
399 throws com.liferay.portal.PortalException,
400 com.liferay.portal.SystemException {
401 getService().unsubscribePage(userId, nodeId, title);
402 }
403
404 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
405 long userId, long nodeId, java.lang.String title, double version,
406 java.lang.String content, java.lang.String summary, boolean minorEdit,
407 java.lang.String format, java.lang.String parentTitle,
408 java.lang.String redirectTitle,
409 com.liferay.portal.service.ServiceContext serviceContext)
410 throws com.liferay.portal.PortalException,
411 com.liferay.portal.SystemException {
412 return getService()
413 .updatePage(userId, nodeId, title, version, content,
414 summary, minorEdit, format, parentTitle, redirectTitle,
415 serviceContext);
416 }
417
418 public static void updateTagsAsset(long userId,
419 com.liferay.portlet.wiki.model.WikiPage page,
420 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
421 throws com.liferay.portal.PortalException,
422 com.liferay.portal.SystemException {
423 getService().updateTagsAsset(userId, page, tagsCategories, tagsEntries);
424 }
425
426 public static void validateTitle(java.lang.String title)
427 throws com.liferay.portal.PortalException {
428 getService().validateTitle(title);
429 }
430
431 public static WikiPageLocalService getService() {
432 if (_service == null) {
433 _service = (WikiPageLocalService)PortalBeanLocatorUtil.locate(WikiPageLocalService.class.getName());
434 }
435
436 return _service;
437 }
438
439 public void setService(WikiPageLocalService service) {
440 _service = service;
441 }
442
443 private static WikiPageLocalService _service;
444 }