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