001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
101            * @param start the lower bound of the range of model instances
102            * @param end the upper bound of the range of model instances (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
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query
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            * Returns the wiki node with the primary key.
152            *
153            * @param nodeId the primary key of the wiki node
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
165                    java.io.Serializable primaryKeyObj)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _wikiNodeLocalService.getPersistedModel(primaryKeyObj);
169            }
170    
171            /**
172            * Returns the wiki node with the UUID in the group.
173            *
174            * @param uuid the UUID of wiki node
175            * @param groupId the group id of the wiki node
176            * @return the wiki node
177            * @throws PortalException if a wiki node with the UUID in the group could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
181                    java.lang.String uuid, long groupId)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return _wikiNodeLocalService.getWikiNodeByUuidAndGroupId(uuid, groupId);
185            }
186    
187            /**
188            * Returns a range of all the wiki nodes.
189            *
190            * <p>
191            * 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.
192            * </p>
193            *
194            * @param start the lower bound of the range of wiki nodes
195            * @param end the upper bound of the range of wiki nodes (not inclusive)
196            * @return the range of wiki nodes
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
200                    int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _wikiNodeLocalService.getWikiNodes(start, end);
203            }
204    
205            /**
206            * Returns the number of wiki nodes.
207            *
208            * @return the number of wiki nodes
209            * @throws SystemException if a system exception occurred
210            */
211            public int getWikiNodesCount()
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _wikiNodeLocalService.getWikiNodesCount();
214            }
215    
216            /**
217            * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
218            *
219            * @param wikiNode the wiki node
220            * @return the wiki node that was updated
221            * @throws SystemException if a system exception occurred
222            */
223            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
224                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _wikiNodeLocalService.updateWikiNode(wikiNode);
227            }
228    
229            /**
230            * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param wikiNode the wiki node
233            * @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.
234            * @return the wiki node that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
238                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _wikiNodeLocalService.updateWikiNode(wikiNode, merge);
241            }
242    
243            /**
244            * Returns the Spring bean ID for this bean.
245            *
246            * @return the Spring bean ID for this bean
247            */
248            public java.lang.String getBeanIdentifier() {
249                    return _wikiNodeLocalService.getBeanIdentifier();
250            }
251    
252            /**
253            * Sets the Spring bean ID for this bean.
254            *
255            * @param beanIdentifier the Spring bean ID for this bean
256            */
257            public void setBeanIdentifier(java.lang.String beanIdentifier) {
258                    _wikiNodeLocalService.setBeanIdentifier(beanIdentifier);
259            }
260    
261            public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _wikiNodeLocalService.addDefaultNode(userId, serviceContext);
266            }
267    
268            public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
269                    java.lang.String name, java.lang.String description,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _wikiNodeLocalService.addNode(userId, name, description,
274                            serviceContext);
275            }
276    
277            public void addNodeResources(long nodeId, boolean addGroupPermissions,
278                    boolean addGuestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _wikiNodeLocalService.addNodeResources(nodeId, addGroupPermissions,
282                            addGuestPermissions);
283            }
284    
285            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
286                    boolean addGroupPermissions, boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _wikiNodeLocalService.addNodeResources(node, addGroupPermissions,
290                            addGuestPermissions);
291            }
292    
293            public void addNodeResources(long nodeId,
294                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _wikiNodeLocalService.addNodeResources(nodeId, groupPermissions,
298                            guestPermissions);
299            }
300    
301            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
302                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _wikiNodeLocalService.addNodeResources(node, groupPermissions,
306                            guestPermissions);
307            }
308    
309            public void deleteNode(long nodeId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _wikiNodeLocalService.deleteNode(nodeId);
313            }
314    
315            public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _wikiNodeLocalService.deleteNode(node);
319            }
320    
321            public void deleteNodes(long groupId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    _wikiNodeLocalService.deleteNodes(groupId);
325            }
326    
327            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
328                    long companyId, int start, int end)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _wikiNodeLocalService.getCompanyNodes(companyId, start, end);
331            }
332    
333            public int getCompanyNodesCount(long companyId)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return _wikiNodeLocalService.getCompanyNodesCount(companyId);
336            }
337    
338            public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _wikiNodeLocalService.getNode(nodeId);
342            }
343    
344            public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
345                    java.lang.String nodeName)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    return _wikiNodeLocalService.getNode(groupId, nodeName);
349            }
350    
351            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
352                    long groupId)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _wikiNodeLocalService.getNodes(groupId);
356            }
357    
358            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
359                    long groupId, int start, int end)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return _wikiNodeLocalService.getNodes(groupId, start, end);
363            }
364    
365            public int getNodesCount(long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _wikiNodeLocalService.getNodesCount(groupId);
368            }
369    
370            public void importPages(long userId, long nodeId,
371                    java.lang.String importer, java.io.InputStream[] inputStreams,
372                    java.util.Map<java.lang.String, java.lang.String[]> options)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    _wikiNodeLocalService.importPages(userId, nodeId, importer,
376                            inputStreams, options);
377            }
378    
379            public void subscribeNode(long userId, long nodeId)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    _wikiNodeLocalService.subscribeNode(userId, nodeId);
383            }
384    
385            public void unsubscribeNode(long userId, long nodeId)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException {
388                    _wikiNodeLocalService.unsubscribeNode(userId, nodeId);
389            }
390    
391            public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
392                    java.lang.String name, java.lang.String description,
393                    com.liferay.portal.service.ServiceContext serviceContext)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    return _wikiNodeLocalService.updateNode(nodeId, name, description,
397                            serviceContext);
398            }
399    
400            public WikiNodeLocalService getWrappedWikiNodeLocalService() {
401                    return _wikiNodeLocalService;
402            }
403    
404            public void setWrappedWikiNodeLocalService(
405                    WikiNodeLocalService wikiNodeLocalService) {
406                    _wikiNodeLocalService = wikiNodeLocalService;
407            }
408    
409            private WikiNodeLocalService _wikiNodeLocalService;
410    }