1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.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.PortalException,
53              com.liferay.portal.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.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.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.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.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.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.PortalException,
93              com.liferay.portal.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) throws com.liferay.portal.SystemException {
99          return getService().getWikiNodes(start, end);
100     }
101 
102     public static int getWikiNodesCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getWikiNodesCount();
105     }
106 
107     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
108         com.liferay.portlet.wiki.model.WikiNode wikiNode)
109         throws com.liferay.portal.SystemException {
110         return getService().updateWikiNode(wikiNode);
111     }
112 
113     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
114         com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
115         throws com.liferay.portal.SystemException {
116         return getService().updateWikiNode(wikiNode, merge);
117     }
118 
119     public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
120         java.lang.String name, java.lang.String description,
121         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return getService().addNode(userId, name, description, serviceContext);
125     }
126 
127     public static com.liferay.portlet.wiki.model.WikiNode addNode(
128         java.lang.String uuid, long userId, java.lang.String name,
129         java.lang.String description,
130         com.liferay.portal.service.ServiceContext serviceContext)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return getService()
134                    .addNode(uuid, userId, name, description, serviceContext);
135     }
136 
137     public static void addNodeResources(long nodeId,
138         boolean addCommunityPermissions, boolean addGuestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         getService()
142             .addNodeResources(nodeId, addCommunityPermissions,
143             addGuestPermissions);
144     }
145 
146     public static void addNodeResources(
147         com.liferay.portlet.wiki.model.WikiNode node,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException {
151         getService()
152             .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
153     }
154 
155     public static void addNodeResources(long nodeId,
156         java.lang.String[] communityPermissions,
157         java.lang.String[] guestPermissions)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         getService()
161             .addNodeResources(nodeId, communityPermissions, guestPermissions);
162     }
163 
164     public static void addNodeResources(
165         com.liferay.portlet.wiki.model.WikiNode node,
166         java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException {
170         getService()
171             .addNodeResources(node, communityPermissions, guestPermissions);
172     }
173 
174     public static void deleteNode(long nodeId)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException {
177         getService().deleteNode(nodeId);
178     }
179 
180     public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService().deleteNode(node);
184     }
185 
186     public static void deleteNodes(long groupId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException {
189         getService().deleteNodes(groupId);
190     }
191 
192     public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         return getService().getNode(nodeId);
196     }
197 
198     public static com.liferay.portlet.wiki.model.WikiNode getNode(
199         long groupId, java.lang.String nodeName)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException {
202         return getService().getNode(groupId, nodeName);
203     }
204 
205     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
206         long groupId) throws com.liferay.portal.SystemException {
207         return getService().getNodes(groupId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
211         long groupId, int start, int end)
212         throws com.liferay.portal.SystemException {
213         return getService().getNodes(groupId, start, end);
214     }
215 
216     public static int getNodesCount(long groupId)
217         throws com.liferay.portal.SystemException {
218         return getService().getNodesCount(groupId);
219     }
220 
221     public static void importPages(long userId, long nodeId,
222         java.lang.String importer, java.io.File[] files,
223         java.util.Map<String, String[]> options)
224         throws com.liferay.portal.PortalException,
225             com.liferay.portal.SystemException {
226         getService().importPages(userId, nodeId, importer, files, options);
227     }
228 
229     public static void reIndex(java.lang.String[] ids)
230         throws com.liferay.portal.SystemException {
231         getService().reIndex(ids);
232     }
233 
234     public static com.liferay.portal.kernel.search.Hits search(long companyId,
235         long groupId, long userId, long[] nodeIds, java.lang.String keywords,
236         int start, int end) throws com.liferay.portal.SystemException {
237         return getService()
238                    .search(companyId, groupId, userId, nodeIds, keywords,
239             start, end);
240     }
241 
242     public static void subscribeNode(long userId, long nodeId)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException {
245         getService().subscribeNode(userId, nodeId);
246     }
247 
248     public static void unsubscribeNode(long userId, long nodeId)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.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         throws com.liferay.portal.PortalException,
257             com.liferay.portal.SystemException {
258         return getService().updateNode(nodeId, name, description);
259     }
260 
261     public static com.liferay.portlet.wiki.model.WikiNode updateNode(
262         long nodeId, java.lang.String name, java.lang.String description,
263         com.liferay.portal.service.ServiceContext serviceContext)
264         throws com.liferay.portal.PortalException,
265             com.liferay.portal.SystemException {
266         return getService().updateNode(nodeId, name, description, serviceContext);
267     }
268 
269     public static WikiNodeLocalService getService() {
270         if (_service == null) {
271             _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
272         }
273 
274         return _service;
275     }
276 
277     public void setService(WikiNodeLocalService service) {
278         _service = service;
279     }
280 
281     private static WikiNodeLocalService _service;
282 }