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
033 public class WikiNodeServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.wiki.model.WikiNode addNode(
059 java.lang.String name, java.lang.String description,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService().addNode(name, description, serviceContext);
064 }
065
066 public static void deleteNode(long nodeId)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 getService().deleteNode(nodeId);
070 }
071
072 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService().getNode(nodeId);
076 }
077
078 public static com.liferay.portlet.wiki.model.WikiNode getNode(
079 long groupId, java.lang.String name)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 return getService().getNode(groupId, name);
083 }
084
085 public static void importPages(long nodeId, java.lang.String importer,
086 java.io.InputStream[] inputStreams,
087 java.util.Map<java.lang.String, java.lang.String[]> options)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 getService().importPages(nodeId, importer, inputStreams, options);
091 }
092
093 public static void subscribeNode(long nodeId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 getService().subscribeNode(nodeId);
097 }
098
099 public static void unsubscribeNode(long nodeId)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 getService().unsubscribeNode(nodeId);
103 }
104
105 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
106 long nodeId, java.lang.String name, java.lang.String description,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return getService().updateNode(nodeId, name, description, serviceContext);
111 }
112
113 public static WikiNodeService getService() {
114 if (_service == null) {
115 _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
116
117 ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
118 "_service");
119 }
120
121 return _service;
122 }
123
124
127 public void setService(WikiNodeService service) {
128 }
129
130 private static WikiNodeService _service;
131 }