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 com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
094 long nodeId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().moveNodeToTrash(nodeId);
098 }
099
100 public static void restoreNodeFromTrash(long nodeId)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 getService().restoreNodeFromTrash(nodeId);
104 }
105
106 public static void subscribeNode(long nodeId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 getService().subscribeNode(nodeId);
110 }
111
112 public static void unsubscribeNode(long nodeId)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException {
115 getService().unsubscribeNode(nodeId);
116 }
117
118 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
119 long nodeId, java.lang.String name, java.lang.String description,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().updateNode(nodeId, name, description, serviceContext);
124 }
125
126 public static WikiNodeService getService() {
127 if (_service == null) {
128 _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
129
130 ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
131 "_service");
132 }
133
134 return _service;
135 }
136
137
140 public void setService(WikiNodeService service) {
141 }
142
143 private static WikiNodeService _service;
144 }