001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class WikiNodeLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
049 com.liferay.portlet.wiki.model.WikiNode wikiNode)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addWikiNode(wikiNode);
052 }
053
054
060 public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
061 long nodeId) {
062 return getService().createWikiNode(nodeId);
063 }
064
065
073 public static com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
074 long nodeId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteWikiNode(nodeId);
078 }
079
080
087 public static com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
088 com.liferay.portlet.wiki.model.WikiNode wikiNode)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteWikiNode(wikiNode);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(
184 long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().fetchWikiNode(nodeId);
186 }
187
188
196 public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndCompanyId(
197 java.lang.String uuid, long companyId)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getService().fetchWikiNodeByUuidAndCompanyId(uuid, companyId);
200 }
201
202
210 public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndGroupId(
211 java.lang.String uuid, long groupId)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().fetchWikiNodeByUuidAndGroupId(uuid, groupId);
214 }
215
216
224 public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
225 long nodeId)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException {
228 return getService().getWikiNode(nodeId);
229 }
230
231 public static com.liferay.portal.model.PersistedModel getPersistedModel(
232 java.io.Serializable primaryKeyObj)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 return getService().getPersistedModel(primaryKeyObj);
236 }
237
238
247 public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndCompanyId(
248 java.lang.String uuid, long companyId)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException {
251 return getService().getWikiNodeByUuidAndCompanyId(uuid, companyId);
252 }
253
254
263 public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
264 java.lang.String uuid, long groupId)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException {
267 return getService().getWikiNodeByUuidAndGroupId(uuid, groupId);
268 }
269
270
282 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
283 int start, int end)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getService().getWikiNodes(start, end);
286 }
287
288
294 public static int getWikiNodesCount()
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return getService().getWikiNodesCount();
297 }
298
299
306 public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
307 com.liferay.portlet.wiki.model.WikiNode wikiNode)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getService().updateWikiNode(wikiNode);
310 }
311
312
317 public static java.lang.String getBeanIdentifier() {
318 return getService().getBeanIdentifier();
319 }
320
321
326 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
327 getService().setBeanIdentifier(beanIdentifier);
328 }
329
330 public static com.liferay.portlet.wiki.model.WikiNode addDefaultNode(
331 long userId, com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 return getService().addDefaultNode(userId, serviceContext);
335 }
336
337 public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
338 java.lang.String name, java.lang.String description,
339 com.liferay.portal.service.ServiceContext serviceContext)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException {
342 return getService().addNode(userId, name, description, serviceContext);
343 }
344
345 public static void addNodeResources(long nodeId,
346 boolean addGroupPermissions, boolean addGuestPermissions)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 getService()
350 .addNodeResources(nodeId, addGroupPermissions, addGuestPermissions);
351 }
352
353 public static void addNodeResources(long nodeId,
354 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException {
357 getService().addNodeResources(nodeId, groupPermissions, guestPermissions);
358 }
359
360 public static void addNodeResources(
361 com.liferay.portlet.wiki.model.WikiNode node,
362 boolean addGroupPermissions, boolean addGuestPermissions)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException {
365 getService()
366 .addNodeResources(node, addGroupPermissions, addGuestPermissions);
367 }
368
369 public static void addNodeResources(
370 com.liferay.portlet.wiki.model.WikiNode node,
371 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 getService().addNodeResources(node, groupPermissions, guestPermissions);
375 }
376
377 public static void deleteNode(long nodeId)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 getService().deleteNode(nodeId);
381 }
382
383 public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException {
386 getService().deleteNode(node);
387 }
388
389 public static void deleteNodes(long groupId)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException {
392 getService().deleteNodes(groupId);
393 }
394
395 public static com.liferay.portlet.wiki.model.WikiNode fetchNode(
396 long groupId, java.lang.String name)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getService().fetchNode(groupId, name);
399 }
400
401 public static com.liferay.portlet.wiki.model.WikiNode fetchNodeByUuidAndGroupId(
402 java.lang.String uuid, long groupId)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getService().fetchNodeByUuidAndGroupId(uuid, groupId);
405 }
406
407 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
408 long companyId, int start, int end)
409 throws com.liferay.portal.kernel.exception.SystemException {
410 return getService().getCompanyNodes(companyId, start, end);
411 }
412
413 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
414 long companyId, int status, int start, int end)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getService().getCompanyNodes(companyId, status, start, end);
417 }
418
419 public static int getCompanyNodesCount(long companyId)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getService().getCompanyNodesCount(companyId);
422 }
423
424 public static int getCompanyNodesCount(long companyId, int status)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getService().getCompanyNodesCount(companyId, status);
427 }
428
429 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException {
432 return getService().getNode(nodeId);
433 }
434
435 public static com.liferay.portlet.wiki.model.WikiNode getNode(
436 long groupId, java.lang.String nodeName)
437 throws com.liferay.portal.kernel.exception.PortalException,
438 com.liferay.portal.kernel.exception.SystemException {
439 return getService().getNode(groupId, nodeName);
440 }
441
442 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
443 long groupId)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 return getService().getNodes(groupId);
447 }
448
449 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
450 long groupId, int status)
451 throws com.liferay.portal.kernel.exception.PortalException,
452 com.liferay.portal.kernel.exception.SystemException {
453 return getService().getNodes(groupId, status);
454 }
455
456 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
457 long groupId, int start, int end)
458 throws com.liferay.portal.kernel.exception.PortalException,
459 com.liferay.portal.kernel.exception.SystemException {
460 return getService().getNodes(groupId, start, end);
461 }
462
463 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
464 long groupId, int status, int start, int end)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException {
467 return getService().getNodes(groupId, status, start, end);
468 }
469
470 public static int getNodesCount(long groupId)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 return getService().getNodesCount(groupId);
473 }
474
475 public static int getNodesCount(long groupId, int status)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 return getService().getNodesCount(groupId, status);
478 }
479
480 public static void importPages(long userId, long nodeId,
481 java.lang.String importer, java.io.InputStream[] inputStreams,
482 java.util.Map<java.lang.String, java.lang.String[]> options)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException {
485 getService().importPages(userId, nodeId, importer, inputStreams, options);
486 }
487
488 public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
489 long userId, long nodeId)
490 throws com.liferay.portal.kernel.exception.PortalException,
491 com.liferay.portal.kernel.exception.SystemException {
492 return getService().moveNodeToTrash(userId, nodeId);
493 }
494
495 public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
496 long userId, com.liferay.portlet.wiki.model.WikiNode node)
497 throws com.liferay.portal.kernel.exception.PortalException,
498 com.liferay.portal.kernel.exception.SystemException {
499 return getService().moveNodeToTrash(userId, node);
500 }
501
502 public static void restoreNodeFromTrash(long userId,
503 com.liferay.portlet.wiki.model.WikiNode node)
504 throws com.liferay.portal.kernel.exception.PortalException,
505 com.liferay.portal.kernel.exception.SystemException {
506 getService().restoreNodeFromTrash(userId, node);
507 }
508
509 public static void subscribeNode(long userId, long nodeId)
510 throws com.liferay.portal.kernel.exception.PortalException,
511 com.liferay.portal.kernel.exception.SystemException {
512 getService().subscribeNode(userId, nodeId);
513 }
514
515 public static void unsubscribeNode(long userId, long nodeId)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException {
518 getService().unsubscribeNode(userId, nodeId);
519 }
520
521 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
522 long nodeId, java.lang.String name, java.lang.String description,
523 com.liferay.portal.service.ServiceContext serviceContext)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException {
526 return getService().updateNode(nodeId, name, description, serviceContext);
527 }
528
529 public static com.liferay.portlet.wiki.model.WikiNode updateStatus(
530 long userId, com.liferay.portlet.wiki.model.WikiNode node, int status,
531 com.liferay.portal.service.ServiceContext serviceContext)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException {
534 return getService().updateStatus(userId, node, status, serviceContext);
535 }
536
537 public static WikiNodeLocalService getService() {
538 if (_service == null) {
539 _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
540
541 ReferenceRegistry.registerReference(WikiNodeLocalServiceUtil.class,
542 "_service");
543 }
544
545 return _service;
546 }
547
548
551 public void setService(WikiNodeLocalService service) {
552 }
553
554 private static WikiNodeLocalService _service;
555 }