001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for WikiNode. This utility wraps
024     * {@link com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see WikiNodeService
032     * @see com.liferay.portlet.wiki.service.base.WikiNodeServiceBaseImpl
033     * @see com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class WikiNodeServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
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            /**
056            * Returns the Spring bean ID for this bean.
057            *
058            * @return the Spring bean ID for this bean
059            */
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            /**
123            * Sets the Spring bean ID for this bean.
124            *
125            * @param beanIdentifier the Spring bean ID for this bean
126            */
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            /**
160             * @deprecated As of 6.2.0
161             */
162            @Deprecated
163            public void setService(WikiNodeService service) {
164            }
165    
166            private static WikiNodeService _service;
167    }