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