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