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            * @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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.wiki.model.impl.WikiNodeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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            * Returns the Spring bean ID for this bean.
246            *
247            * @return the Spring bean ID for this bean
248            */
249            public java.lang.String getBeanIdentifier() {
250                    return _wikiNodeLocalService.getBeanIdentifier();
251            }
252    
253            /**
254            * Sets the Spring bean ID for this bean.
255            *
256            * @param beanIdentifier the Spring bean ID for this bean
257            */
258            public void setBeanIdentifier(java.lang.String beanIdentifier) {
259                    _wikiNodeLocalService.setBeanIdentifier(beanIdentifier);
260            }
261    
262            public com.liferay.portlet.wiki.model.WikiNode addDefaultNode(long userId,
263                    com.liferay.portal.service.ServiceContext serviceContext)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _wikiNodeLocalService.addDefaultNode(userId, serviceContext);
267            }
268    
269            public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
270                    java.lang.String name, java.lang.String description,
271                    com.liferay.portal.service.ServiceContext serviceContext)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _wikiNodeLocalService.addNode(userId, name, description,
275                            serviceContext);
276            }
277    
278            public void addNodeResources(long nodeId, boolean addGroupPermissions,
279                    boolean addGuestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _wikiNodeLocalService.addNodeResources(nodeId, addGroupPermissions,
283                            addGuestPermissions);
284            }
285    
286            public void addNodeResources(long nodeId,
287                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _wikiNodeLocalService.addNodeResources(nodeId, groupPermissions,
291                            guestPermissions);
292            }
293    
294            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
295                    boolean addGroupPermissions, boolean addGuestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _wikiNodeLocalService.addNodeResources(node, addGroupPermissions,
299                            addGuestPermissions);
300            }
301    
302            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
303                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _wikiNodeLocalService.addNodeResources(node, groupPermissions,
307                            guestPermissions);
308            }
309    
310            public void deleteNode(long nodeId)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _wikiNodeLocalService.deleteNode(nodeId);
314            }
315    
316            public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _wikiNodeLocalService.deleteNode(node);
320            }
321    
322            public void deleteNodes(long groupId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _wikiNodeLocalService.deleteNodes(groupId);
326            }
327    
328            public com.liferay.portlet.wiki.model.WikiNode fetchWikiNode(long groupId,
329                    java.lang.String name)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _wikiNodeLocalService.fetchWikiNode(groupId, name);
332            }
333    
334            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
335                    long companyId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _wikiNodeLocalService.getCompanyNodes(companyId, start, end);
338            }
339    
340            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
341                    long companyId, int status, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _wikiNodeLocalService.getCompanyNodes(companyId, status, start,
344                            end);
345            }
346    
347            public int getCompanyNodesCount(long companyId)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _wikiNodeLocalService.getCompanyNodesCount(companyId);
350            }
351    
352            public int getCompanyNodesCount(long companyId, int status)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _wikiNodeLocalService.getCompanyNodesCount(companyId, status);
355            }
356    
357            public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _wikiNodeLocalService.getNode(nodeId);
361            }
362    
363            public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
364                    java.lang.String nodeName)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _wikiNodeLocalService.getNode(groupId, nodeName);
368            }
369    
370            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
371                    long groupId)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return _wikiNodeLocalService.getNodes(groupId);
375            }
376    
377            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
378                    long groupId, int status)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _wikiNodeLocalService.getNodes(groupId, status);
382            }
383    
384            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
385                    long groupId, int start, int end)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException {
388                    return _wikiNodeLocalService.getNodes(groupId, start, end);
389            }
390    
391            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
392                    long groupId, int status, int start, int end)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    return _wikiNodeLocalService.getNodes(groupId, status, start, end);
396            }
397    
398            public int getNodesCount(long groupId)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _wikiNodeLocalService.getNodesCount(groupId);
401            }
402    
403            public int getNodesCount(long groupId, int status)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _wikiNodeLocalService.getNodesCount(groupId, status);
406            }
407    
408            public void importPages(long userId, long nodeId,
409                    java.lang.String importer, java.io.InputStream[] inputStreams,
410                    java.util.Map<java.lang.String, java.lang.String[]> options)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException {
413                    _wikiNodeLocalService.importPages(userId, nodeId, importer,
414                            inputStreams, options);
415            }
416    
417            public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
418                    long userId, long nodeId)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return _wikiNodeLocalService.moveNodeToTrash(userId, nodeId);
422            }
423    
424            public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(
425                    long userId, com.liferay.portlet.wiki.model.WikiNode node)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _wikiNodeLocalService.moveNodeToTrash(userId, node);
429            }
430    
431            public void restoreNodeFromTrash(long userId,
432                    com.liferay.portlet.wiki.model.WikiNode node)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    _wikiNodeLocalService.restoreNodeFromTrash(userId, node);
436            }
437    
438            public void subscribeNode(long userId, long nodeId)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    _wikiNodeLocalService.subscribeNode(userId, nodeId);
442            }
443    
444            public void unsubscribeNode(long userId, long nodeId)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    _wikiNodeLocalService.unsubscribeNode(userId, nodeId);
448            }
449    
450            public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
451                    java.lang.String name, java.lang.String description,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _wikiNodeLocalService.updateNode(nodeId, name, description,
456                            serviceContext);
457            }
458    
459            public com.liferay.portlet.wiki.model.WikiNode updateStatus(long userId,
460                    com.liferay.portlet.wiki.model.WikiNode node, int status,
461                    com.liferay.portal.service.ServiceContext serviceContext)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    return _wikiNodeLocalService.updateStatus(userId, node, status,
465                            serviceContext);
466            }
467    
468            /**
469             * @deprecated Renamed to {@link #getWrappedService}
470             */
471            public WikiNodeLocalService getWrappedWikiNodeLocalService() {
472                    return _wikiNodeLocalService;
473            }
474    
475            /**
476             * @deprecated Renamed to {@link #setWrappedService}
477             */
478            public void setWrappedWikiNodeLocalService(
479                    WikiNodeLocalService wikiNodeLocalService) {
480                    _wikiNodeLocalService = wikiNodeLocalService;
481            }
482    
483            public WikiNodeLocalService getWrappedService() {
484                    return _wikiNodeLocalService;
485            }
486    
487            public void setWrappedService(WikiNodeLocalService wikiNodeLocalService) {
488                    _wikiNodeLocalService = wikiNodeLocalService;
489            }
490    
491            private WikiNodeLocalService _wikiNodeLocalService;
492    }