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