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