1
19
20 package com.liferay.portlet.wiki.service;
21
22
23
44 public class WikiNodeLocalServiceUtil {
45 public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
46 com.liferay.portlet.wiki.model.WikiNode wikiNode)
47 throws com.liferay.portal.SystemException {
48 return getService().addWikiNode(wikiNode);
49 }
50
51 public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
52 long nodeId) {
53 return getService().createWikiNode(nodeId);
54 }
55
56 public static void deleteWikiNode(long nodeId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteWikiNode(nodeId);
60 }
61
62 public static void deleteWikiNode(
63 com.liferay.portlet.wiki.model.WikiNode wikiNode)
64 throws com.liferay.portal.SystemException {
65 getService().deleteWikiNode(wikiNode);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
81 long nodeId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getWikiNode(nodeId);
85 }
86
87 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getWikiNodes(start, end);
90 }
91
92 public static int getWikiNodesCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getWikiNodesCount();
95 }
96
97 public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
98 com.liferay.portlet.wiki.model.WikiNode wikiNode)
99 throws com.liferay.portal.SystemException {
100 return getService().updateWikiNode(wikiNode);
101 }
102
103 public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
104 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
105 throws com.liferay.portal.SystemException {
106 return getService().updateWikiNode(wikiNode, merge);
107 }
108
109 public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
110 java.lang.String name, java.lang.String description,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 return getService().addNode(userId, name, description, serviceContext);
115 }
116
117 public static com.liferay.portlet.wiki.model.WikiNode addNode(
118 java.lang.String uuid, long userId, java.lang.String name,
119 java.lang.String description,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 return getService()
124 .addNode(uuid, userId, name, description, serviceContext);
125 }
126
127 public static void addNodeResources(long nodeId,
128 boolean addCommunityPermissions, boolean addGuestPermissions)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException {
131 getService()
132 .addNodeResources(nodeId, addCommunityPermissions,
133 addGuestPermissions);
134 }
135
136 public static void addNodeResources(
137 com.liferay.portlet.wiki.model.WikiNode node,
138 boolean addCommunityPermissions, boolean addGuestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 getService()
142 .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
143 }
144
145 public static void addNodeResources(long nodeId,
146 java.lang.String[] communityPermissions,
147 java.lang.String[] guestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 getService()
151 .addNodeResources(nodeId, communityPermissions, guestPermissions);
152 }
153
154 public static void addNodeResources(
155 com.liferay.portlet.wiki.model.WikiNode node,
156 java.lang.String[] communityPermissions,
157 java.lang.String[] guestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException {
160 getService()
161 .addNodeResources(node, communityPermissions, guestPermissions);
162 }
163
164 public static void deleteNode(long nodeId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 getService().deleteNode(nodeId);
168 }
169
170 public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException {
173 getService().deleteNode(node);
174 }
175
176 public static void deleteNodes(long groupId)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 getService().deleteNodes(groupId);
180 }
181
182 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 return getService().getNode(nodeId);
186 }
187
188 public static com.liferay.portlet.wiki.model.WikiNode getNode(
189 long groupId, java.lang.String nodeName)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 return getService().getNode(groupId, nodeName);
193 }
194
195 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
196 long groupId) throws com.liferay.portal.SystemException {
197 return getService().getNodes(groupId);
198 }
199
200 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
201 long groupId, int start, int end)
202 throws com.liferay.portal.SystemException {
203 return getService().getNodes(groupId, start, end);
204 }
205
206 public static int getNodesCount(long groupId)
207 throws com.liferay.portal.SystemException {
208 return getService().getNodesCount(groupId);
209 }
210
211 public static void importPages(long userId, long nodeId,
212 java.lang.String importer, java.io.File[] files,
213 java.util.Map<String, String[]> options)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 getService().importPages(userId, nodeId, importer, files, options);
217 }
218
219 public static void reIndex(java.lang.String[] ids)
220 throws com.liferay.portal.SystemException {
221 getService().reIndex(ids);
222 }
223
224 public static com.liferay.portal.kernel.search.Hits search(long companyId,
225 long groupId, long userId, long[] nodeIds, java.lang.String keywords,
226 int start, int end) throws com.liferay.portal.SystemException {
227 return getService()
228 .search(companyId, groupId, userId, nodeIds, keywords,
229 start, end);
230 }
231
232 public static void subscribeNode(long userId, long nodeId)
233 throws com.liferay.portal.PortalException,
234 com.liferay.portal.SystemException {
235 getService().subscribeNode(userId, nodeId);
236 }
237
238 public static void unsubscribeNode(long userId, long nodeId)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 getService().unsubscribeNode(userId, nodeId);
242 }
243
244 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
245 long nodeId, java.lang.String name, java.lang.String description)
246 throws com.liferay.portal.PortalException,
247 com.liferay.portal.SystemException {
248 return getService().updateNode(nodeId, name, description);
249 }
250
251 public static WikiNodeLocalService getService() {
252 if (_service == null) {
253 throw new RuntimeException("WikiNodeLocalService is not set");
254 }
255
256 return _service;
257 }
258
259 public void setService(WikiNodeLocalService service) {
260 _service = service;
261 }
262
263 private static WikiNodeLocalService _service;
264 }