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 void subscribeNode(long nodeId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    getService().subscribeNode(nodeId);
097            }
098    
099            public static void unsubscribeNode(long nodeId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    getService().unsubscribeNode(nodeId);
103            }
104    
105            public static com.liferay.portlet.wiki.model.WikiNode updateNode(
106                    long nodeId, java.lang.String name, java.lang.String description,
107                    com.liferay.portal.service.ServiceContext serviceContext)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    return getService().updateNode(nodeId, name, description, serviceContext);
111            }
112    
113            public static WikiNodeService getService() {
114                    if (_service == null) {
115                            _service = (WikiNodeService)PortalBeanLocatorUtil.locate(WikiNodeService.class.getName());
116    
117                            ReferenceRegistry.registerReference(WikiNodeServiceUtil.class,
118                                    "_service");
119                    }
120    
121                    return _service;
122            }
123    
124            /**
125             * @deprecated
126             */
127            public void setService(WikiNodeService service) {
128            }
129    
130            private static WikiNodeService _service;
131    }