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 remote service utility for WikiNode. This utility wraps
022     * {@link com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see WikiNodeService
030     * @see com.liferay.portlet.wiki.service.base.WikiNodeServiceBaseImpl
031     * @see com.liferay.portlet.wiki.service.impl.WikiNodeServiceImpl
032     * @generated
033     */
034    public class WikiNodeServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.wiki.model.WikiNode addNode(
060                    java.lang.String name, java.lang.String description,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return getService().addNode(name, description, serviceContext);
065            }
066    
067            public static void deleteNode(long nodeId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    getService().deleteNode(nodeId);
071            }
072    
073            public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().getNode(nodeId);
077            }
078    
079            public static com.liferay.portlet.wiki.model.WikiNode getNode(
080                    long groupId, java.lang.String name)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService().getNode(groupId, name);
084            }
085    
086            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
087                    long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getNodes(groupId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
094                    long groupId, int status)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getNodes(groupId, status);
098            }
099    
100            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
101                    long groupId, int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getNodes(groupId, start, end);
104            }
105    
106            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
107                    long groupId, int status, int start, int end)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getNodes(groupId, status, start, end);
110            }
111    
112            public static int getNodesCount(long groupId)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().getNodesCount(groupId);
115            }
116    
117            public static int getNodesCount(long groupId, int status)
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return getService().getNodesCount(groupId, status);
120            }
121    
122            public static void importPages(long nodeId, java.lang.String importer,
123                    java.io.InputStream[] inputStreams,
124                    java.util.Map<java.lang.String, java.lang.String[]> options)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    getService().importPages(nodeId, importer, inputStreams, options);
128            }
129    
130            public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
131                    long nodeId)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    return getService().moveNodeToTrash(nodeId);
135            }
136    
137            public static void restoreNodeFromTrash(long nodeId)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    getService().restoreNodeFromTrash(nodeId);
141            }
142    
143            public static void subscribeNode(long nodeId)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException {
146                    getService().subscribeNode(nodeId);
147            }
148    
149            public static void unsubscribeNode(long nodeId)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    getService().unsubscribeNode(nodeId);
153            }
154    
155            public static com.liferay.portlet.wiki.model.WikiNode updateNode(
156                    long nodeId, java.lang.String name, java.lang.String description,
157                    com.liferay.portal.service.ServiceContext serviceContext)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return getService().updateNode(nodeId, name, description, serviceContext);
161            }
162    
163            public static WikiNodeService getService() {
164                    if (_service == null) {
165                            _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
166    
167                            ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
168                                    "_service");
169                    }
170    
171                    return _service;
172            }
173    
174            /**
175             * @deprecated As of 6.2.0
176             */
177            public void setService(WikiNodeService service) {
178            }
179    
180            private static WikiNodeService _service;
181    }