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