1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.wiki.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="WikiNodeLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link WikiNodeLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       WikiNodeLocalService
37   * @generated
38   */
39  public class WikiNodeLocalServiceUtil {
40      public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
41          com.liferay.portlet.wiki.model.WikiNode wikiNode)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addWikiNode(wikiNode);
44      }
45  
46      public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
47          long nodeId) {
48          return getService().createWikiNode(nodeId);
49      }
50  
51      public static void deleteWikiNode(long nodeId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteWikiNode(nodeId);
55      }
56  
57      public static void deleteWikiNode(
58          com.liferay.portlet.wiki.model.WikiNode wikiNode)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteWikiNode(wikiNode);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
91          long nodeId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getWikiNode(nodeId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getWikiNodes(start, end);
101     }
102 
103     public static int getWikiNodesCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getWikiNodesCount();
106     }
107 
108     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
109         com.liferay.portlet.wiki.model.WikiNode wikiNode)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateWikiNode(wikiNode);
112     }
113 
114     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
115         com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getService().updateWikiNode(wikiNode, merge);
118     }
119 
120     public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
121         java.lang.String name, java.lang.String description,
122         com.liferay.portal.service.ServiceContext serviceContext)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getService().addNode(userId, name, description, serviceContext);
126     }
127 
128     public static com.liferay.portlet.wiki.model.WikiNode addNode(
129         java.lang.String uuid, long userId, java.lang.String name,
130         java.lang.String description,
131         com.liferay.portal.service.ServiceContext serviceContext)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         return getService()
135                    .addNode(uuid, 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.SystemException {
220         return getService().getNodes(groupId);
221     }
222 
223     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
224         long groupId, int start, int end)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getService().getNodes(groupId, start, end);
227     }
228 
229     public static int getNodesCount(long groupId)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getService().getNodesCount(groupId);
232     }
233 
234     public static void importPages(long userId, long nodeId,
235         java.lang.String importer, java.io.File[] files,
236         java.util.Map<String, String[]> options)
237         throws com.liferay.portal.kernel.exception.PortalException,
238             com.liferay.portal.kernel.exception.SystemException {
239         getService().importPages(userId, nodeId, importer, files, options);
240     }
241 
242     public static void subscribeNode(long userId, long nodeId)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         getService().subscribeNode(userId, nodeId);
246     }
247 
248     public static void unsubscribeNode(long userId, long nodeId)
249         throws com.liferay.portal.kernel.exception.PortalException,
250             com.liferay.portal.kernel.exception.SystemException {
251         getService().unsubscribeNode(userId, nodeId);
252     }
253 
254     public static com.liferay.portlet.wiki.model.WikiNode updateNode(
255         long nodeId, java.lang.String name, java.lang.String description,
256         com.liferay.portal.service.ServiceContext serviceContext)
257         throws com.liferay.portal.kernel.exception.PortalException,
258             com.liferay.portal.kernel.exception.SystemException {
259         return getService().updateNode(nodeId, name, description, serviceContext);
260     }
261 
262     public static WikiNodeLocalService getService() {
263         if (_service == null) {
264             _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
265         }
266 
267         return _service;
268     }
269 
270     public void setService(WikiNodeLocalService service) {
271         _service = service;
272     }
273 
274     private static WikiNodeLocalService _service;
275 }