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