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      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
94          long nodeId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getWikiNode(nodeId);
98      }
99  
100     public static com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getWikiNodeByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getWikiNodes(start, end);
111     }
112 
113     public static int getWikiNodesCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getWikiNodesCount();
116     }
117 
118     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
119         com.liferay.portlet.wiki.model.WikiNode wikiNode)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateWikiNode(wikiNode);
122     }
123 
124     public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
125         com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getService().updateWikiNode(wikiNode, merge);
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 com.liferay.portlet.wiki.model.WikiNode addNode(
139         java.lang.String uuid, long userId, java.lang.String name,
140         java.lang.String description,
141         com.liferay.portal.service.ServiceContext serviceContext)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return getService()
145                    .addNode(uuid, userId, name, description, serviceContext);
146     }
147 
148     public static void addNodeResources(long nodeId,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         getService()
153             .addNodeResources(nodeId, addCommunityPermissions,
154             addGuestPermissions);
155     }
156 
157     public static void addNodeResources(
158         com.liferay.portlet.wiki.model.WikiNode node,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException {
162         getService()
163             .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
164     }
165 
166     public static void addNodeResources(long nodeId,
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(nodeId, communityPermissions, guestPermissions);
173     }
174 
175     public static void addNodeResources(
176         com.liferay.portlet.wiki.model.WikiNode node,
177         java.lang.String[] communityPermissions,
178         java.lang.String[] guestPermissions)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         getService()
182             .addNodeResources(node, communityPermissions, guestPermissions);
183     }
184 
185     public static void deleteNode(long nodeId)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         getService().deleteNode(nodeId);
189     }
190 
191     public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         getService().deleteNode(node);
195     }
196 
197     public static void deleteNodes(long groupId)
198         throws com.liferay.portal.kernel.exception.PortalException,
199             com.liferay.portal.kernel.exception.SystemException {
200         getService().deleteNodes(groupId);
201     }
202 
203     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
204         long companyId, int start, int end)
205         throws com.liferay.portal.kernel.exception.SystemException {
206         return getService().getCompanyNodes(companyId, start, end);
207     }
208 
209     public static int getCompanyNodesCount(long companyId)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getService().getCompanyNodesCount(companyId);
212     }
213 
214     public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
215         throws com.liferay.portal.kernel.exception.PortalException,
216             com.liferay.portal.kernel.exception.SystemException {
217         return getService().getNode(nodeId);
218     }
219 
220     public static com.liferay.portlet.wiki.model.WikiNode getNode(
221         long groupId, java.lang.String nodeName)
222         throws com.liferay.portal.kernel.exception.PortalException,
223             com.liferay.portal.kernel.exception.SystemException {
224         return getService().getNode(groupId, nodeName);
225     }
226 
227     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
228         long groupId)
229         throws com.liferay.portal.kernel.exception.SystemException {
230         return getService().getNodes(groupId);
231     }
232 
233     public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
234         long groupId, int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getService().getNodes(groupId, start, end);
237     }
238 
239     public static int getNodesCount(long groupId)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getService().getNodesCount(groupId);
242     }
243 
244     public static void importPages(long userId, long nodeId,
245         java.lang.String importer, java.io.File[] files,
246         java.util.Map<java.lang.String, java.lang.String[]> options)
247         throws com.liferay.portal.kernel.exception.PortalException,
248             com.liferay.portal.kernel.exception.SystemException {
249         getService().importPages(userId, nodeId, importer, files, options);
250     }
251 
252     public static void subscribeNode(long userId, long nodeId)
253         throws com.liferay.portal.kernel.exception.PortalException,
254             com.liferay.portal.kernel.exception.SystemException {
255         getService().subscribeNode(userId, nodeId);
256     }
257 
258     public static void unsubscribeNode(long userId, long nodeId)
259         throws com.liferay.portal.kernel.exception.PortalException,
260             com.liferay.portal.kernel.exception.SystemException {
261         getService().unsubscribeNode(userId, nodeId);
262     }
263 
264     public static com.liferay.portlet.wiki.model.WikiNode updateNode(
265         long nodeId, java.lang.String name, java.lang.String description,
266         com.liferay.portal.service.ServiceContext serviceContext)
267         throws com.liferay.portal.kernel.exception.PortalException,
268             com.liferay.portal.kernel.exception.SystemException {
269         return getService().updateNode(nodeId, name, description, serviceContext);
270     }
271 
272     public static WikiNodeLocalService getService() {
273         if (_service == null) {
274             _service = (WikiNodeLocalService)PortalBeanLocatorUtil.locate(WikiNodeLocalService.class.getName());
275         }
276 
277         return _service;
278     }
279 
280     public void setService(WikiNodeLocalService service) {
281         _service = service;
282     }
283 
284     private static WikiNodeLocalService _service;
285 }