001    /**
002     * Copyright (c) 2000-2010 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    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link WikiNodeLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       WikiNodeLocalService
030     * @generated
031     */
032    public class WikiNodeLocalServiceUtil {
033            public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
034                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addWikiNode(wikiNode);
037            }
038    
039            public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
040                    long nodeId) {
041                    return getService().createWikiNode(nodeId);
042            }
043    
044            public static void deleteWikiNode(long nodeId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteWikiNode(nodeId);
048            }
049    
050            public static void deleteWikiNode(
051                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteWikiNode(wikiNode);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
087                    long nodeId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getWikiNode(nodeId);
091            }
092    
093            public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getWikiNodeByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getWikiNodes(start, end);
104            }
105    
106            public static int getWikiNodesCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getWikiNodesCount();
109            }
110    
111            public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
112                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateWikiNode(wikiNode);
115            }
116    
117            public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
118                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService().updateWikiNode(wikiNode, merge);
121            }
122    
123            public static com.liferay.portlet.wiki.model.WikiNode addDefaultNode(
124                    long userId, com.liferay.portal.service.ServiceContext serviceContext)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    return getService().addDefaultNode(userId, serviceContext);
128            }
129    
130            public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
131                    java.lang.String name, java.lang.String description,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService().addNode(userId, name, description, serviceContext);
136            }
137    
138            public static void addNodeResources(long nodeId,
139                    boolean addCommunityPermissions, boolean addGuestPermissions)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    getService()
143                            .addNodeResources(nodeId, addCommunityPermissions,
144                            addGuestPermissions);
145            }
146    
147            public static void addNodeResources(
148                    com.liferay.portlet.wiki.model.WikiNode node,
149                    boolean addCommunityPermissions, boolean addGuestPermissions)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    getService()
153                            .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
154            }
155    
156            public static void addNodeResources(long nodeId,
157                    java.lang.String[] communityPermissions,
158                    java.lang.String[] guestPermissions)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    getService()
162                            .addNodeResources(nodeId, communityPermissions, guestPermissions);
163            }
164    
165            public static void addNodeResources(
166                    com.liferay.portlet.wiki.model.WikiNode node,
167                    java.lang.String[] communityPermissions,
168                    java.lang.String[] guestPermissions)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    getService()
172                            .addNodeResources(node, communityPermissions, guestPermissions);
173            }
174    
175            public static void deleteNode(long nodeId)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    getService().deleteNode(nodeId);
179            }
180    
181            public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    getService().deleteNode(node);
185            }
186    
187            public static void deleteNodes(long groupId)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException {
190                    getService().deleteNodes(groupId);
191            }
192    
193            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
194                    long companyId, int start, int end)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getService().getCompanyNodes(companyId, start, end);
197            }
198    
199            public static int getCompanyNodesCount(long companyId)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getCompanyNodesCount(companyId);
202            }
203    
204            public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return getService().getNode(nodeId);
208            }
209    
210            public static com.liferay.portlet.wiki.model.WikiNode getNode(
211                    long groupId, java.lang.String nodeName)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getNode(groupId, nodeName);
215            }
216    
217            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
218                    long groupId)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return getService().getNodes(groupId);
222            }
223    
224            public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
225                    long groupId, int start, int end)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return getService().getNodes(groupId, start, end);
229            }
230    
231            public static int getNodesCount(long groupId)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return getService().getNodesCount(groupId);
234            }
235    
236            public static void importPages(long userId, long nodeId,
237                    java.lang.String importer, java.io.File[] files,
238                    java.util.Map<java.lang.String, java.lang.String[]> options)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    getService().importPages(userId, nodeId, importer, files, options);
242            }
243    
244            public static void subscribeNode(long userId, long nodeId)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    getService().subscribeNode(userId, nodeId);
248            }
249    
250            public static void unsubscribeNode(long userId, long nodeId)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    getService().unsubscribeNode(userId, nodeId);
254            }
255    
256            public static com.liferay.portlet.wiki.model.WikiNode updateNode(
257                    long nodeId, java.lang.String name, java.lang.String description,
258                    com.liferay.portal.service.ServiceContext serviceContext)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    return getService().updateNode(nodeId, name, description, serviceContext);
262            }
263    
264            public static WikiNodeLocalService getService() {
265                    if (_service == null) {
266                            _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
267                    }
268    
269                    return _service;
270            }
271    
272            public void setService(WikiNodeLocalService service) {
273                    _service = service;
274            }
275    
276            private static WikiNodeLocalService _service;
277    }