001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.wiki.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link WikiNodeLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WikiNodeLocalService
024     * @generated
025     */
026    public class WikiNodeLocalServiceWrapper implements WikiNodeLocalService {
027            public WikiNodeLocalServiceWrapper(
028                    WikiNodeLocalService wikiNodeLocalService) {
029                    _wikiNodeLocalService = wikiNodeLocalService;
030            }
031    
032            /**
033            * Adds the wiki node to the database. Also notifies the appropriate model listeners.
034            *
035            * @param wikiNode the wiki node to add
036            * @return the wiki node that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
040                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _wikiNodeLocalService.addWikiNode(wikiNode);
043            }
044    
045            /**
046            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
047            *
048            * @param nodeId the primary key for the new wiki node
049            * @return the new wiki node
050            */
051            public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId) {
052                    return _wikiNodeLocalService.createWikiNode(nodeId);
053            }
054    
055            /**
056            * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param nodeId the primary key of the wiki node to delete
059            * @throws PortalException if a wiki node with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteWikiNode(long nodeId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _wikiNodeLocalService.deleteWikiNode(nodeId);
066            }
067    
068            /**
069            * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
070            *
071            * @param wikiNode the wiki node to delete
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    _wikiNodeLocalService.deleteWikiNode(wikiNode);
077            }
078    
079            /**
080            * Performs a dynamic query on the database and returns the matching rows.
081            *
082            * @param dynamicQuery the dynamic query to search with
083            * @return the matching rows
084            * @throws SystemException if a system exception occurred
085            */
086            @SuppressWarnings("rawtypes")
087            public java.util.List dynamicQuery(
088                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery);
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns a range of the matching rows.
095            *
096            * <p>
097            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
098            * </p>
099            *
100            * @param dynamicQuery the dynamic query to search with
101            * @param start the lower bound of the range of model instances to return
102            * @param end the upper bound of the range of model instances to return (not inclusive)
103            * @return the range of matching rows
104            * @throws SystemException if a system exception occurred
105            */
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
109                    int end) throws com.liferay.portal.kernel.exception.SystemException {
110                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery, start, end);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
115            *
116            * <p>
117            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query to search with
121            * @param start the lower bound of the range of model instances to return
122            * @param end the upper bound of the range of model instances to return (not inclusive)
123            * @param orderByComparator the comparator to order the results by
124            * @return the ordered range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end,
131                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery, start, end,
134                            orderByComparator);
135            }
136    
137            /**
138            * Counts the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query to search with
141            * @return the number of rows that match the dynamic query
142            * @throws SystemException if a system exception occurred
143            */
144            public long dynamicQueryCount(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _wikiNodeLocalService.dynamicQueryCount(dynamicQuery);
148            }
149    
150            /**
151            * Gets the wiki node with the primary key.
152            *
153            * @param nodeId the primary key of the wiki node to get
154            * @return the wiki node
155            * @throws PortalException if a wiki node with the primary key could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return _wikiNodeLocalService.getWikiNode(nodeId);
162            }
163    
164            /**
165            * Gets the wiki node with the UUID and group id.
166            *
167            * @param uuid the UUID of wiki node to get
168            * @param groupId the group id of the wiki node to get
169            * @return the wiki node
170            * @throws PortalException if a wiki node with the UUID and group id could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
174                    java.lang.String uuid, long groupId)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _wikiNodeLocalService.getWikiNodeByUuidAndGroupId(uuid, groupId);
178            }
179    
180            /**
181            * Gets a range of all the wiki nodes.
182            *
183            * <p>
184            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
185            * </p>
186            *
187            * @param start the lower bound of the range of wiki nodes to return
188            * @param end the upper bound of the range of wiki nodes to return (not inclusive)
189            * @return the range of wiki nodes
190            * @throws SystemException if a system exception occurred
191            */
192            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
193                    int start, int end)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _wikiNodeLocalService.getWikiNodes(start, end);
196            }
197    
198            /**
199            * Gets the number of wiki nodes.
200            *
201            * @return the number of wiki nodes
202            * @throws SystemException if a system exception occurred
203            */
204            public int getWikiNodesCount()
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _wikiNodeLocalService.getWikiNodesCount();
207            }
208    
209            /**
210            * Updates the wiki node in the database. Also notifies the appropriate model listeners.
211            *
212            * @param wikiNode the wiki node to update
213            * @return the wiki node that was updated
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
217                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _wikiNodeLocalService.updateWikiNode(wikiNode);
220            }
221    
222            /**
223            * Updates the wiki node in the database. Also notifies the appropriate model listeners.
224            *
225            * @param wikiNode the wiki node to update
226            * @param merge whether to merge the wiki node with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
227            * @return the wiki node that was updated
228            * @throws SystemException if a system exception occurred
229            */
230            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
231                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _wikiNodeLocalService.updateWikiNode(wikiNode, merge);
234            }
235    
236            public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
237                    com.liferay.portal.service.ServiceContext serviceContext)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    return _wikiNodeLocalService.addDefaultNode(userId, serviceContext);
241            }
242    
243            public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
244                    java.lang.String name, java.lang.String description,
245                    com.liferay.portal.service.ServiceContext serviceContext)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    return _wikiNodeLocalService.addNode(userId, name, description,
249                            serviceContext);
250            }
251    
252            public void addNodeResources(long nodeId, boolean addCommunityPermissions,
253                    boolean addGuestPermissions)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    _wikiNodeLocalService.addNodeResources(nodeId, addCommunityPermissions,
257                            addGuestPermissions);
258            }
259    
260            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
261                    boolean addCommunityPermissions, boolean addGuestPermissions)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _wikiNodeLocalService.addNodeResources(node, addCommunityPermissions,
265                            addGuestPermissions);
266            }
267    
268            public void addNodeResources(long nodeId,
269                    java.lang.String[] communityPermissions,
270                    java.lang.String[] guestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _wikiNodeLocalService.addNodeResources(nodeId, communityPermissions,
274                            guestPermissions);
275            }
276    
277            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
278                    java.lang.String[] communityPermissions,
279                    java.lang.String[] guestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _wikiNodeLocalService.addNodeResources(node, communityPermissions,
283                            guestPermissions);
284            }
285    
286            public void deleteNode(long nodeId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _wikiNodeLocalService.deleteNode(nodeId);
290            }
291    
292            public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _wikiNodeLocalService.deleteNode(node);
296            }
297    
298            public void deleteNodes(long groupId)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _wikiNodeLocalService.deleteNodes(groupId);
302            }
303    
304            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
305                    long companyId, int start, int end)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _wikiNodeLocalService.getCompanyNodes(companyId, start, end);
308            }
309    
310            public int getCompanyNodesCount(long companyId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _wikiNodeLocalService.getCompanyNodesCount(companyId);
313            }
314    
315            public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    return _wikiNodeLocalService.getNode(nodeId);
319            }
320    
321            public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
322                    java.lang.String nodeName)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _wikiNodeLocalService.getNode(groupId, nodeName);
326            }
327    
328            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
329                    long groupId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _wikiNodeLocalService.getNodes(groupId);
333            }
334    
335            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
336                    long groupId, int start, int end)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _wikiNodeLocalService.getNodes(groupId, start, end);
340            }
341    
342            public int getNodesCount(long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _wikiNodeLocalService.getNodesCount(groupId);
345            }
346    
347            public void importPages(long userId, long nodeId,
348                    java.lang.String importer, java.io.File[] files,
349                    java.util.Map<java.lang.String, java.lang.String[]> options)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _wikiNodeLocalService.importPages(userId, nodeId, importer, files,
353                            options);
354            }
355    
356            public void subscribeNode(long userId, long nodeId)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    _wikiNodeLocalService.subscribeNode(userId, nodeId);
360            }
361    
362            public void unsubscribeNode(long userId, long nodeId)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    _wikiNodeLocalService.unsubscribeNode(userId, nodeId);
366            }
367    
368            public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
369                    java.lang.String name, java.lang.String description,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _wikiNodeLocalService.updateNode(nodeId, name, description,
374                            serviceContext);
375            }
376    
377            public WikiNodeLocalService getWrappedWikiNodeLocalService() {
378                    return _wikiNodeLocalService;
379            }
380    
381            private WikiNodeLocalService _wikiNodeLocalService;
382    }