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 public static com.liferay.portlet.wiki.model.WikiNode addNode(
044 java.lang.String name, java.lang.String description,
045 com.liferay.portal.service.ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService().addNode(name, description, serviceContext);
048 }
049
050 public static void deleteNode(long nodeId)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 getService().deleteNode(nodeId);
053 }
054
055
060 public static java.lang.String getBeanIdentifier() {
061 return getService().getBeanIdentifier();
062 }
063
064 public static com.liferay.portlet.wiki.model.WikiNode getNode(
065 long groupId, java.lang.String name)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService().getNode(groupId, name);
068 }
069
070 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 return getService().getNode(nodeId);
073 }
074
075 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
076 long groupId)
077 throws com.liferay.portal.kernel.exception.PortalException {
078 return getService().getNodes(groupId);
079 }
080
081 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
082 long groupId, int start, int end) {
083 return getService().getNodes(groupId, start, end);
084 }
085
086 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
087 long groupId, int status)
088 throws com.liferay.portal.kernel.exception.PortalException {
089 return getService().getNodes(groupId, status);
090 }
091
092 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
093 long groupId, int status, int start, int end) {
094 return getService().getNodes(groupId, status, start, end);
095 }
096
097 public static int getNodesCount(long groupId) {
098 return getService().getNodesCount(groupId);
099 }
100
101 public static int getNodesCount(long groupId, int status) {
102 return getService().getNodesCount(groupId, status);
103 }
104
105 public static void importPages(long nodeId, java.lang.String importer,
106 java.io.InputStream[] inputStreams,
107 java.util.Map<java.lang.String, java.lang.String[]> options)
108 throws com.liferay.portal.kernel.exception.PortalException {
109 getService().importPages(nodeId, importer, inputStreams, options);
110 }
111
112 public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
113 long nodeId) throws com.liferay.portal.kernel.exception.PortalException {
114 return getService().moveNodeToTrash(nodeId);
115 }
116
117 public static void restoreNodeFromTrash(long nodeId)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService().restoreNodeFromTrash(nodeId);
120 }
121
122
127 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
128 getService().setBeanIdentifier(beanIdentifier);
129 }
130
131 public static void subscribeNode(long nodeId)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 getService().subscribeNode(nodeId);
134 }
135
136 public static void unsubscribeNode(long nodeId)
137 throws com.liferay.portal.kernel.exception.PortalException {
138 getService().unsubscribeNode(nodeId);
139 }
140
141 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
142 long nodeId, java.lang.String name, java.lang.String description,
143 com.liferay.portal.service.ServiceContext serviceContext)
144 throws com.liferay.portal.kernel.exception.PortalException {
145 return getService().updateNode(nodeId, name, description, serviceContext);
146 }
147
148 public static WikiNodeService getService() {
149 if (_service == null) {
150 _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
151
152 ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
153 "_service");
154 }
155
156 return _service;
157 }
158
159
162 @Deprecated
163 public void setService(WikiNodeService service) {
164 }
165
166 private static WikiNodeService _service;
167 }