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 java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
087 long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getNodes(groupId);
091 }
092
093 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
094 long groupId, int status)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getNodes(groupId, status);
098 }
099
100 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
101 long groupId, int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getNodes(groupId, start, end);
104 }
105
106 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
107 long groupId, int status, int start, int end)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().getNodes(groupId, status, start, end);
110 }
111
112 public static int getNodesCount(long groupId)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().getNodesCount(groupId);
115 }
116
117 public static int getNodesCount(long groupId, int status)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getService().getNodesCount(groupId, status);
120 }
121
122 public static void importPages(long nodeId, java.lang.String importer,
123 java.io.InputStream[] inputStreams,
124 java.util.Map<java.lang.String, java.lang.String[]> options)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 getService().importPages(nodeId, importer, inputStreams, options);
128 }
129
130 public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
131 long nodeId)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException {
134 return getService().moveNodeToTrash(nodeId);
135 }
136
137 public static void restoreNodeFromTrash(long nodeId)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 getService().restoreNodeFromTrash(nodeId);
141 }
142
143 public static void subscribeNode(long nodeId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 getService().subscribeNode(nodeId);
147 }
148
149 public static void unsubscribeNode(long nodeId)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 getService().unsubscribeNode(nodeId);
153 }
154
155 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
156 long nodeId, java.lang.String name, java.lang.String description,
157 com.liferay.portal.service.ServiceContext serviceContext)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return getService().updateNode(nodeId, name, description, serviceContext);
161 }
162
163 public static WikiNodeService getService() {
164 if (_service == null) {
165 _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
166
167 ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
168 "_service");
169 }
170
171 return _service;
172 }
173
174
177 public void setService(WikiNodeService service) {
178 }
179
180 private static WikiNodeService _service;
181 }