001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
021     * Provides the local service utility for WikiNode. This utility wraps
022     * {@link com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see WikiNodeLocalService
030     * @see com.liferay.portlet.wiki.service.base.WikiNodeLocalServiceBaseImpl
031     * @see com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
032     * @generated
033     */
034    public class WikiNodeLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the wiki node to the database. Also notifies the appropriate model listeners.
043            *
044            * @param wikiNode the wiki node
045            * @return the wiki node that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
049                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addWikiNode(wikiNode);
052            }
053    
054            /**
055            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
056            *
057            * @param nodeId the primary key for the new wiki node
058            * @return the new wiki node
059            */
060            public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
061                    long nodeId) {
062                    return getService().createWikiNode(nodeId);
063            }
064    
065            /**
066            * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param nodeId the primary key of the wiki node
069            * @return the wiki node that was removed
070            * @throws PortalException if a wiki node with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
074                    long nodeId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteWikiNode(nodeId);
078            }
079    
080            /**
081            * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
082            *
083            * @param wikiNode the wiki node
084            * @return the wiki node that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.wiki.model.WikiNode deleteWikiNode(
088                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteWikiNode(wikiNode);
091            }
092    
093            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return getService().dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @SuppressWarnings("rawtypes")
105            public static java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @SuppressWarnings("rawtypes")
125            public static java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return getService().dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @SuppressWarnings("rawtypes")
146            public static java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public static long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            public static long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(
184                    long nodeId) throws com.liferay.portal.kernel.exception.SystemException {
185                    return getService().fetchWikiNode(nodeId);
186            }
187    
188            /**
189            * Returns the wiki node with the matching UUID and company.
190            *
191            * @param uuid the wiki node's UUID
192            * @param companyId the primary key of the company
193            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndCompanyId(
197                    java.lang.String uuid, long companyId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getService().fetchWikiNodeByUuidAndCompanyId(uuid, companyId);
200            }
201    
202            /**
203            * Returns the wiki node matching the UUID and group.
204            *
205            * @param uuid the wiki node's UUID
206            * @param groupId the primary key of the group
207            * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.wiki.model.WikiNode fetchWikiNodeByUuidAndGroupId(
211                    java.lang.String uuid, long groupId)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return getService().fetchWikiNodeByUuidAndGroupId(uuid, groupId);
214            }
215    
216            /**
217            * Returns the wiki node with the primary key.
218            *
219            * @param nodeId the primary key of the wiki node
220            * @return the wiki node
221            * @throws PortalException if a wiki node with the primary key could not be found
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
225                    long nodeId)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return getService().getWikiNode(nodeId);
229            }
230    
231            public static com.liferay.portal.model.PersistedModel getPersistedModel(
232                    java.io.Serializable primaryKeyObj)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException {
235                    return getService().getPersistedModel(primaryKeyObj);
236            }
237    
238            /**
239            * Returns the wiki node with the matching UUID and company.
240            *
241            * @param uuid the wiki node's UUID
242            * @param companyId the primary key of the company
243            * @return the matching wiki node
244            * @throws PortalException if a matching wiki node could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndCompanyId(
248                    java.lang.String uuid, long companyId)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return getService().getWikiNodeByUuidAndCompanyId(uuid, companyId);
252            }
253    
254            /**
255            * Returns the wiki node matching the UUID and group.
256            *
257            * @param uuid the wiki node's UUID
258            * @param groupId the primary key of the group
259            * @return the matching wiki node
260            * @throws PortalException if a matching wiki node could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
264                    java.lang.String uuid, long groupId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return getService().getWikiNodeByUuidAndGroupId(uuid, groupId);
268            }
269    
270            /**
271            * Returns a range of all the wiki nodes.
272            *
273            * <p>
274            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
275            * </p>
276            *
277            * @param start the lower bound of the range of wiki nodes
278            * @param end the upper bound of the range of wiki nodes (not inclusive)
279            * @return the range of wiki nodes
280            * @throws SystemException if a system exception occurred
281            */
282            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
283                    int start, int end)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    return getService().getWikiNodes(start, end);
286            }
287    
288            /**
289            * Returns the number of wiki nodes.
290            *
291            * @return the number of wiki nodes
292            * @throws SystemException if a system exception occurred
293            */
294            public static int getWikiNodesCount()
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return getService().getWikiNodesCount();
297            }
298    
299            /**
300            * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
301            *
302            * @param wikiNode the wiki node
303            * @return the wiki node that was updated
304            * @throws SystemException if a system exception occurred
305            */
306            public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
307                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return getService().updateWikiNode(wikiNode);
310            }
311    
312            /**
313            * Returns the Spring bean ID for this bean.
314            *
315            * @return the Spring bean ID for this bean
316            */
317            public static java.lang.String getBeanIdentifier() {
318                    return getService().getBeanIdentifier();
319            }
320    
321            /**
322            * Sets the Spring bean ID for this bean.
323            *
324            * @param beanIdentifier the Spring bean ID for this bean
325            */
326            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
327                    getService().setBeanIdentifier(beanIdentifier);
328            }
329    
330            public static com.liferay.portlet.wiki.model.WikiNode addDefaultNode(
331                    long userId, com.liferay.portal.service.ServiceContext serviceContext)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return getService().addDefaultNode(userId, serviceContext);
335            }
336    
337            public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
338                    java.lang.String name, java.lang.String description,
339                    com.liferay.portal.service.ServiceContext serviceContext)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return getService().addNode(userId, name, description, serviceContext);
343            }
344    
345            public static void addNodeResources(long nodeId,
346                    boolean addGroupPermissions, boolean addGuestPermissions)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    getService()
350                            .addNodeResources(nodeId, addGroupPermissions, addGuestPermissions);
351            }
352    
353            public static void addNodeResources(long nodeId,
354                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    getService().addNodeResources(nodeId, groupPermissions, guestPermissions);
358            }
359    
360            public static void addNodeResources(
361                    com.liferay.portlet.wiki.model.WikiNode node,
362                    boolean addGroupPermissions, boolean addGuestPermissions)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    getService()
366                            .addNodeResources(node, addGroupPermissions, addGuestPermissions);
367            }
368    
369            public static void addNodeResources(
370                    com.liferay.portlet.wiki.model.WikiNode node,
371                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    getService().addNodeResources(node, groupPermissions, guestPermissions);
375            }
376    
377            public static void deleteNode(long nodeId)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    getService().deleteNode(nodeId);
381            }
382    
383            public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    getService().deleteNode(node);
387            }
388    
389            public static void deleteNodes(long groupId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    getService().deleteNodes(groupId);
393            }
394    
395            public static com.liferay.portlet.wiki.model.WikiNode fetchNode(
396                    long groupId, java.lang.String name)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getService().fetchNode(groupId, name);
399            }
400    
401            public static com.liferay.portlet.wiki.model.WikiNode fetchNodeByUuidAndGroupId(
402                    java.lang.String uuid, long groupId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getService().fetchNodeByUuidAndGroupId(uuid, groupId);
405            }
406    
407            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
408                    long companyId, int start, int end)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getService().getCompanyNodes(companyId, start, end);
411            }
412    
413            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
414                    long companyId, int status, int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return getService().getCompanyNodes(companyId, status, start, end);
417            }
418    
419            public static int getCompanyNodesCount(long companyId)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return getService().getCompanyNodesCount(companyId);
422            }
423    
424            public static int getCompanyNodesCount(long companyId, int status)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getService().getCompanyNodesCount(companyId, status);
427            }
428    
429            public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
430                    throws com.liferay.portal.kernel.exception.PortalException,
431                            com.liferay.portal.kernel.exception.SystemException {
432                    return getService().getNode(nodeId);
433            }
434    
435            public static com.liferay.portlet.wiki.model.WikiNode getNode(
436                    long groupId, java.lang.String nodeName)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException {
439                    return getService().getNode(groupId, nodeName);
440            }
441    
442            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
443                    long groupId)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    return getService().getNodes(groupId);
447            }
448    
449            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
450                    long groupId, int status)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    return getService().getNodes(groupId, status);
454            }
455    
456            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
457                    long groupId, int start, int end)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    return getService().getNodes(groupId, start, end);
461            }
462    
463            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
464                    long groupId, int status, int start, int end)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    return getService().getNodes(groupId, status, start, end);
468            }
469    
470            public static int getNodesCount(long groupId)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getService().getNodesCount(groupId);
473            }
474    
475            public static int getNodesCount(long groupId, int status)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return getService().getNodesCount(groupId, status);
478            }
479    
480            public static void importPages(long userId, long nodeId,
481                    java.lang.String importer, java.io.InputStream[] inputStreams,
482                    java.util.Map<java.lang.String, java.lang.String[]> options)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    getService().importPages(userId, nodeId, importer, inputStreams, options);
486            }
487    
488            public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
489                    long userId, long nodeId)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    return getService().moveNodeToTrash(userId, nodeId);
493            }
494    
495            public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
496                    long userId, com.liferay.portlet.wiki.model.WikiNode node)
497                    throws com.liferay.portal.kernel.exception.PortalException,
498                            com.liferay.portal.kernel.exception.SystemException {
499                    return getService().moveNodeToTrash(userId, node);
500            }
501    
502            public static void restoreNodeFromTrash(long userId,
503                    com.liferay.portlet.wiki.model.WikiNode node)
504                    throws com.liferay.portal.kernel.exception.PortalException,
505                            com.liferay.portal.kernel.exception.SystemException {
506                    getService().restoreNodeFromTrash(userId, node);
507            }
508    
509            public static void subscribeNode(long userId, long nodeId)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    getService().subscribeNode(userId, nodeId);
513            }
514    
515            public static void unsubscribeNode(long userId, long nodeId)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException {
518                    getService().unsubscribeNode(userId, nodeId);
519            }
520    
521            public static com.liferay.portlet.wiki.model.WikiNode updateNode(
522                    long nodeId, java.lang.String name, java.lang.String description,
523                    com.liferay.portal.service.ServiceContext serviceContext)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return getService().updateNode(nodeId, name, description, serviceContext);
527            }
528    
529            public static com.liferay.portlet.wiki.model.WikiNode updateStatus(
530                    long userId, com.liferay.portlet.wiki.model.WikiNode node, int status,
531                    com.liferay.portal.service.ServiceContext serviceContext)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return getService().updateStatus(userId, node, status, serviceContext);
535            }
536    
537            public static WikiNodeLocalService getService() {
538                    if (_service == null) {
539                            _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
540    
541                            ReferenceRegistry.registerReference(WikiNodeLocalServiceUtil.class,
542                                    "_service");
543                    }
544    
545                    return _service;
546            }
547    
548            /**
549             * @deprecated As of 6.2.0
550             */
551            public void setService(WikiNodeLocalService service) {
552            }
553    
554            private static WikiNodeLocalService _service;
555    }