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