001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 addCommunityPermissions,
278                    boolean addGuestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _wikiNodeLocalService.addNodeResources(nodeId, addCommunityPermissions,
282                            addGuestPermissions);
283            }
284    
285            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
286                    boolean addCommunityPermissions, boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _wikiNodeLocalService.addNodeResources(node, addCommunityPermissions,
290                            addGuestPermissions);
291            }
292    
293            public void addNodeResources(long nodeId,
294                    java.lang.String[] communityPermissions,
295                    java.lang.String[] guestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _wikiNodeLocalService.addNodeResources(nodeId, communityPermissions,
299                            guestPermissions);
300            }
301    
302            public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
303                    java.lang.String[] communityPermissions,
304                    java.lang.String[] guestPermissions)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _wikiNodeLocalService.addNodeResources(node, communityPermissions,
308                            guestPermissions);
309            }
310    
311            public void deleteNode(long nodeId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _wikiNodeLocalService.deleteNode(nodeId);
315            }
316    
317            public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _wikiNodeLocalService.deleteNode(node);
321            }
322    
323            public void deleteNodes(long groupId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _wikiNodeLocalService.deleteNodes(groupId);
327            }
328    
329            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
330                    long companyId, int start, int end)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _wikiNodeLocalService.getCompanyNodes(companyId, start, end);
333            }
334    
335            public int getCompanyNodesCount(long companyId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _wikiNodeLocalService.getCompanyNodesCount(companyId);
338            }
339    
340            public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    return _wikiNodeLocalService.getNode(nodeId);
344            }
345    
346            public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
347                    java.lang.String nodeName)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return _wikiNodeLocalService.getNode(groupId, nodeName);
351            }
352    
353            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
354                    long groupId)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _wikiNodeLocalService.getNodes(groupId);
358            }
359    
360            public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
361                    long groupId, int start, int end)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _wikiNodeLocalService.getNodes(groupId, start, end);
365            }
366    
367            public int getNodesCount(long groupId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _wikiNodeLocalService.getNodesCount(groupId);
370            }
371    
372            public void importPages(long userId, long nodeId,
373                    java.lang.String importer, java.io.File[] files,
374                    java.util.Map<java.lang.String, java.lang.String[]> options)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    _wikiNodeLocalService.importPages(userId, nodeId, importer, files,
378                            options);
379            }
380    
381            public void subscribeNode(long userId, long nodeId)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    _wikiNodeLocalService.subscribeNode(userId, nodeId);
385            }
386    
387            public void unsubscribeNode(long userId, long nodeId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    _wikiNodeLocalService.unsubscribeNode(userId, nodeId);
391            }
392    
393            public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
394                    java.lang.String name, java.lang.String description,
395                    com.liferay.portal.service.ServiceContext serviceContext)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _wikiNodeLocalService.updateNode(nodeId, name, description,
399                            serviceContext);
400            }
401    
402            public WikiNodeLocalService getWrappedWikiNodeLocalService() {
403                    return _wikiNodeLocalService;
404            }
405    
406            public void setWrappedWikiNodeLocalService(
407                    WikiNodeLocalService wikiNodeLocalService) {
408                    _wikiNodeLocalService = wikiNodeLocalService;
409            }
410    
411            private WikiNodeLocalService _wikiNodeLocalService;
412    }