001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link WikiNodeLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       WikiNodeLocalService
026     * @generated
027     */
028    public class WikiNodeLocalServiceWrapper implements WikiNodeLocalService,
029            ServiceWrapper<WikiNodeLocalService> {
030            public WikiNodeLocalServiceWrapper(
031                    WikiNodeLocalService wikiNodeLocalService) {
032                    _wikiNodeLocalService = wikiNodeLocalService;
033            }
034    
035            /**
036            * Adds the wiki node to the database. Also notifies the appropriate model listeners.
037            *
038            * @param wikiNode the wiki node
039            * @return the wiki node that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
043                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _wikiNodeLocalService.addWikiNode(wikiNode);
046            }
047    
048            /**
049            * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
050            *
051            * @param nodeId the primary key for the new wiki node
052            * @return the new wiki node
053            */
054            public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId) {
055                    return _wikiNodeLocalService.createWikiNode(nodeId);
056            }
057    
058            /**
059            * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param nodeId the primary key of the wiki node
062            * @throws PortalException if a wiki node with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteWikiNode(long nodeId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _wikiNodeLocalService.deleteWikiNode(nodeId);
069            }
070    
071            /**
072            * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
073            *
074            * @param wikiNode the wiki node
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _wikiNodeLocalService.deleteWikiNode(wikiNode);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _wikiNodeLocalService.dynamicQuery(dynamicQuery, start, end,
137                            orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _wikiNodeLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long nodeId)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _wikiNodeLocalService.fetchWikiNode(nodeId);
156            }
157    
158            /**
159            * Returns the wiki node with the primary key.
160            *
161            * @param nodeId the primary key of the wiki node
162            * @return the wiki node
163            * @throws PortalException if a wiki node with the primary key could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _wikiNodeLocalService.getWikiNode(nodeId);
170            }
171    
172            public com.liferay.portal.model.PersistedModel getPersistedModel(
173                    java.io.Serializable primaryKeyObj)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _wikiNodeLocalService.getPersistedModel(primaryKeyObj);
177            }
178    
179            /**
180            * Returns the wiki node with the UUID in the group.
181            *
182            * @param uuid the UUID of wiki node
183            * @param groupId the group id of the wiki node
184            * @return the wiki node
185            * @throws PortalException if a wiki node with the UUID in the group could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portlet.wiki.model.WikiNode getWikiNodeByUuidAndGroupId(
189                    java.lang.String uuid, long groupId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return _wikiNodeLocalService.getWikiNodeByUuidAndGroupId(uuid, groupId);
193            }
194    
195            /**
196            * Returns a range of all the wiki nodes.
197            *
198            * <p>
199            * 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.
200            * </p>
201            *
202            * @param start the lower bound of the range of wiki nodes
203            * @param end the upper bound of the range of wiki nodes (not inclusive)
204            * @return the range of wiki nodes
205            * @throws SystemException if a system exception occurred
206            */
207            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
208                    int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _wikiNodeLocalService.getWikiNodes(start, end);
211            }
212    
213            /**
214            * Returns the number of wiki nodes.
215            *
216            * @return the number of wiki nodes
217            * @throws SystemException if a system exception occurred
218            */
219            public int getWikiNodesCount()
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _wikiNodeLocalService.getWikiNodesCount();
222            }
223    
224            /**
225            * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param wikiNode the wiki node
228            * @return the wiki node that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
232                    com.liferay.portlet.wiki.model.WikiNode wikiNode)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _wikiNodeLocalService.updateWikiNode(wikiNode);
235            }
236    
237            /**
238            * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param wikiNode the wiki node
241            * @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.
242            * @return the wiki node that was updated
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
246                    com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _wikiNodeLocalService.updateWikiNode(wikiNode, merge);
249            }
250    
251            /**
252            * Returns the Spring bean ID for this bean.
253            *
254            * @return the Spring bean ID for this bean
255            */
256            public java.lang.String getBeanIdentifier() {
257                    return _wikiNodeLocalService.getBeanIdentifier();
258            }
259    
260            /**
261            * Sets the Spring bean ID for this bean.
262            *
263            * @param beanIdentifier the Spring bean ID for this bean
264            */
265            public void setBeanIdentifier(java.lang.String beanIdentifier) {
266                    _wikiNodeLocalService.setBeanIdentifier(beanIdentifier);
267            }
268    
269            public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
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.addDefaultNode(userId, serviceContext);
274            }
275    
276            public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
277                    java.lang.String name, java.lang.String description,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _wikiNodeLocalService.addNode(userId, name, description,
282                            serviceContext);
283            }
284    
285            public void addNodeResources(long nodeId, boolean addGroupPermissions,
286                    boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _wikiNodeLocalService.addNodeResources(nodeId, 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                    boolean addGroupPermissions, boolean addGuestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _wikiNodeLocalService.addNodeResources(node, addGroupPermissions,
306                            addGuestPermissions);
307            }
308    
309            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
310                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _wikiNodeLocalService.addNodeResources(node, groupPermissions,
314                            guestPermissions);
315            }
316    
317            public void deleteNode(long nodeId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _wikiNodeLocalService.deleteNode(nodeId);
321            }
322    
323            public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _wikiNodeLocalService.deleteNode(node);
327            }
328    
329            public void deleteNodes(long groupId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _wikiNodeLocalService.deleteNodes(groupId);
333            }
334    
335            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
336                    long companyId, int start, int end)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _wikiNodeLocalService.getCompanyNodes(companyId, start, end);
339            }
340    
341            public int getCompanyNodesCount(long companyId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _wikiNodeLocalService.getCompanyNodesCount(companyId);
344            }
345    
346            public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _wikiNodeLocalService.getNode(nodeId);
350            }
351    
352            public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
353                    java.lang.String nodeName)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _wikiNodeLocalService.getNode(groupId, nodeName);
357            }
358    
359            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
360                    long groupId)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _wikiNodeLocalService.getNodes(groupId);
364            }
365    
366            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
367                    long groupId, int start, int end)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    return _wikiNodeLocalService.getNodes(groupId, start, end);
371            }
372    
373            public int getNodesCount(long groupId)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _wikiNodeLocalService.getNodesCount(groupId);
376            }
377    
378            public void importPages(long userId, long nodeId,
379                    java.lang.String importer, java.io.InputStream[] inputStreams,
380                    java.util.Map<java.lang.String, java.lang.String[]> options)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    _wikiNodeLocalService.importPages(userId, nodeId, importer,
384                            inputStreams, options);
385            }
386    
387            public void subscribeNode(long userId, long nodeId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    _wikiNodeLocalService.subscribeNode(userId, nodeId);
391            }
392    
393            public void unsubscribeNode(long userId, long nodeId)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    _wikiNodeLocalService.unsubscribeNode(userId, nodeId);
397            }
398    
399            public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
400                    java.lang.String name, java.lang.String description,
401                    com.liferay.portal.service.ServiceContext serviceContext)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    return _wikiNodeLocalService.updateNode(nodeId, name, description,
405                            serviceContext);
406            }
407    
408            /**
409             * @deprecated Renamed to {@link #getWrappedService}
410             */
411            public WikiNodeLocalService getWrappedWikiNodeLocalService() {
412                    return _wikiNodeLocalService;
413            }
414    
415            /**
416             * @deprecated Renamed to {@link #setWrappedService}
417             */
418            public void setWrappedWikiNodeLocalService(
419                    WikiNodeLocalService wikiNodeLocalService) {
420                    _wikiNodeLocalService = wikiNodeLocalService;
421            }
422    
423            public WikiNodeLocalService getWrappedService() {
424                    return _wikiNodeLocalService;
425            }
426    
427            public void setWrappedService(WikiNodeLocalService wikiNodeLocalService) {
428                    _wikiNodeLocalService = wikiNodeLocalService;
429            }
430    
431            private WikiNodeLocalService _wikiNodeLocalService;
432    }