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 void importPages(long nodeId, java.lang.String importer,
087                    java.io.InputStream[] inputStreams,
088                    java.util.Map<java.lang.String, java.lang.String[]> options)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    getService().importPages(nodeId, importer, inputStreams, options);
092            }
093    
094            public static com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
095                    long nodeId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return getService().moveNodeToTrash(nodeId);
099            }
100    
101            public static void restoreNodeFromTrash(long nodeId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    getService().restoreNodeFromTrash(nodeId);
105            }
106    
107            public static void subscribeNode(long nodeId)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    getService().subscribeNode(nodeId);
111            }
112    
113            public static void unsubscribeNode(long nodeId)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException {
116                    getService().unsubscribeNode(nodeId);
117            }
118    
119            public static com.liferay.portlet.wiki.model.WikiNode updateNode(
120                    long nodeId, java.lang.String name, java.lang.String description,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService().updateNode(nodeId, name, description, serviceContext);
125            }
126    
127            public static WikiNodeService getService() {
128                    if (_service == null) {
129                            _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
130    
131                            ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
132                                    "_service");
133                    }
134    
135                    return _service;
136            }
137    
138            /**
139             * @deprecated As of 6.2.0
140             */
141            public void setService(WikiNodeService service) {
142            }
143    
144            private static WikiNodeService _service;
145    }