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