001
014
015 package com.liferay.portlet.wiki.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class WikiNodeServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.wiki.model.WikiNode addNode(
063 java.lang.String name, java.lang.String description,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return getService().addNode(name, description, serviceContext);
068 }
069
070 public static void deleteNode(long nodeId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 getService().deleteNode(nodeId);
074 }
075
076 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return getService().getNode(nodeId);
080 }
081
082 public static com.liferay.portlet.wiki.model.WikiNode getNode(
083 long groupId, java.lang.String name)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService().getNode(groupId, name);
087 }
088
089 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
090 long groupId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService().getNodes(groupId);
094 }
095
096 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
097 long groupId, int status)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 return getService().getNodes(groupId, status);
101 }
102
103 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
104 long groupId, int start, int end)
105 throws com.liferay.portal.kernel.exception.SystemException {
106 return getService().getNodes(groupId, start, end);
107 }
108
109 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
110 long groupId, int status, int start, int end)
111 throws com.liferay.portal.kernel.exception.SystemException {
112 return getService().getNodes(groupId, status, start, end);
113 }
114
115 public static int getNodesCount(long groupId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().getNodesCount(groupId);
118 }
119
120 public static int getNodesCount(long groupId, int status)
121 throws com.liferay.portal.kernel.exception.SystemException {
122 return getService().getNodesCount(groupId, status);
123 }
124
125 public static void importPages(long nodeId, java.lang.String importer,
126 java.io.InputStream[] inputStreams,
127 java.util.Map<java.lang.String, java.lang.String[]> options)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 getService().importPages(nodeId, importer, inputStreams, options);
131 }
132
133 public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
134 long nodeId)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return getService().moveNodeToTrash(nodeId);
138 }
139
140 public static void restoreNodeFromTrash(long nodeId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 getService().restoreNodeFromTrash(nodeId);
144 }
145
146 public static void subscribeNode(long nodeId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 getService().subscribeNode(nodeId);
150 }
151
152 public static void unsubscribeNode(long nodeId)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException {
155 getService().unsubscribeNode(nodeId);
156 }
157
158 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
159 long nodeId, java.lang.String name, java.lang.String description,
160 com.liferay.portal.service.ServiceContext serviceContext)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException {
163 return getService().updateNode(nodeId, name, description, serviceContext);
164 }
165
166 public static WikiNodeService getService() {
167 if (_service == null) {
168 _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
169
170 ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
171 "_service");
172 }
173
174 return _service;
175 }
176
177
180 public void setService(WikiNodeService service) {
181 }
182
183 private static WikiNodeService _service;
184 }