001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link BookmarksFolderLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       BookmarksFolderLocalService
024     * @generated
025     */
026    public class BookmarksFolderLocalServiceWrapper
027            implements BookmarksFolderLocalService {
028            public BookmarksFolderLocalServiceWrapper(
029                    BookmarksFolderLocalService bookmarksFolderLocalService) {
030                    _bookmarksFolderLocalService = bookmarksFolderLocalService;
031            }
032    
033            /**
034            * Adds the bookmarks folder to the database. Also notifies the appropriate model listeners.
035            *
036            * @param bookmarksFolder the bookmarks folder
037            * @return the bookmarks folder that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
041                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _bookmarksFolderLocalService.addBookmarksFolder(bookmarksFolder);
044            }
045    
046            /**
047            * Creates a new bookmarks folder with the primary key. Does not add the bookmarks folder to the database.
048            *
049            * @param folderId the primary key for the new bookmarks folder
050            * @return the new bookmarks folder
051            */
052            public com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
053                    long folderId) {
054                    return _bookmarksFolderLocalService.createBookmarksFolder(folderId);
055            }
056    
057            /**
058            * Deletes the bookmarks folder with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param folderId the primary key of the bookmarks folder
061            * @throws PortalException if a bookmarks folder with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteBookmarksFolder(long folderId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _bookmarksFolderLocalService.deleteBookmarksFolder(folderId);
068            }
069    
070            /**
071            * Deletes the bookmarks folder from the database. Also notifies the appropriate model listeners.
072            *
073            * @param bookmarksFolder the bookmarks folder
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteBookmarksFolder(
077                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _bookmarksFolderLocalService.deleteBookmarksFolder(bookmarksFolder);
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 _bookmarksFolderLocalService.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 _bookmarksFolderLocalService.dynamicQuery(dynamicQuery, start,
114                            end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _bookmarksFolderLocalService.dynamicQuery(dynamicQuery, start,
138                            end, orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _bookmarksFolderLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            /**
155            * Returns the bookmarks folder with the primary key.
156            *
157            * @param folderId the primary key of the bookmarks folder
158            * @return the bookmarks folder
159            * @throws PortalException if a bookmarks folder with the primary key could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
163                    long folderId)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _bookmarksFolderLocalService.getBookmarksFolder(folderId);
167            }
168    
169            public com.liferay.portal.model.PersistedModel getPersistedModel(
170                    java.io.Serializable primaryKeyObj)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _bookmarksFolderLocalService.getPersistedModel(primaryKeyObj);
174            }
175    
176            /**
177            * Returns the bookmarks folder with the UUID in the group.
178            *
179            * @param uuid the UUID of bookmarks folder
180            * @param groupId the group id of the bookmarks folder
181            * @return the bookmarks folder
182            * @throws PortalException if a bookmarks folder with the UUID in the group could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolderByUuidAndGroupId(
186                    java.lang.String uuid, long groupId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _bookmarksFolderLocalService.getBookmarksFolderByUuidAndGroupId(uuid,
190                            groupId);
191            }
192    
193            /**
194            * Returns a range of all the bookmarks folders.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param start the lower bound of the range of bookmarks folders
201            * @param end the upper bound of the range of bookmarks folders (not inclusive)
202            * @return the range of bookmarks folders
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
206                    int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _bookmarksFolderLocalService.getBookmarksFolders(start, end);
209            }
210    
211            /**
212            * Returns the number of bookmarks folders.
213            *
214            * @return the number of bookmarks folders
215            * @throws SystemException if a system exception occurred
216            */
217            public int getBookmarksFoldersCount()
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _bookmarksFolderLocalService.getBookmarksFoldersCount();
220            }
221    
222            /**
223            * Updates the bookmarks folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
224            *
225            * @param bookmarksFolder the bookmarks folder
226            * @return the bookmarks folder that was updated
227            * @throws SystemException if a system exception occurred
228            */
229            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
230                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _bookmarksFolderLocalService.updateBookmarksFolder(bookmarksFolder);
233            }
234    
235            /**
236            * Updates the bookmarks folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param bookmarksFolder the bookmarks folder
239            * @param merge whether to merge the bookmarks folder 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.
240            * @return the bookmarks folder that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
244                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
245                    boolean merge)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _bookmarksFolderLocalService.updateBookmarksFolder(bookmarksFolder,
248                            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 _bookmarksFolderLocalService.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                    _bookmarksFolderLocalService.setBeanIdentifier(beanIdentifier);
267            }
268    
269            public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
270                    long userId, long parentFolderId, java.lang.String name,
271                    java.lang.String description,
272                    com.liferay.portal.service.ServiceContext serviceContext)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    return _bookmarksFolderLocalService.addFolder(userId, parentFolderId,
276                            name, description, serviceContext);
277            }
278    
279            public void deleteFolder(
280                    com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    _bookmarksFolderLocalService.deleteFolder(folder);
284            }
285    
286            public void deleteFolder(long folderId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _bookmarksFolderLocalService.deleteFolder(folderId);
290            }
291    
292            public void deleteFolders(long groupId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _bookmarksFolderLocalService.deleteFolders(groupId);
296            }
297    
298            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
299                    long companyId, int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _bookmarksFolderLocalService.getCompanyFolders(companyId, start,
302                            end);
303            }
304    
305            public int getCompanyFoldersCount(long companyId)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _bookmarksFolderLocalService.getCompanyFoldersCount(companyId);
308            }
309    
310            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
311                    long folderId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _bookmarksFolderLocalService.getFolder(folderId);
315            }
316    
317            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
318                    long groupId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _bookmarksFolderLocalService.getFolders(groupId);
321            }
322    
323            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
324                    long groupId, long parentFolderId)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _bookmarksFolderLocalService.getFolders(groupId, parentFolderId);
327            }
328    
329            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
330                    long groupId, long parentFolderId, int start, int end)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _bookmarksFolderLocalService.getFolders(groupId, parentFolderId,
333                            start, end);
334            }
335    
336            public int getFoldersCount(long groupId, long parentFolderId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _bookmarksFolderLocalService.getFoldersCount(groupId,
339                            parentFolderId);
340            }
341    
342            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
343                    long groupId, long folderId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    _bookmarksFolderLocalService.getSubfolderIds(folderIds, groupId,
346                            folderId);
347            }
348    
349            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
350                    long folderId, long parentFolderId, java.lang.String name,
351                    java.lang.String description, boolean mergeWithParentFolder,
352                    com.liferay.portal.service.ServiceContext serviceContext)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _bookmarksFolderLocalService.updateFolder(folderId,
356                            parentFolderId, name, description, mergeWithParentFolder,
357                            serviceContext);
358            }
359    
360            public BookmarksFolderLocalService getWrappedBookmarksFolderLocalService() {
361                    return _bookmarksFolderLocalService;
362            }
363    
364            public void setWrappedBookmarksFolderLocalService(
365                    BookmarksFolderLocalService bookmarksFolderLocalService) {
366                    _bookmarksFolderLocalService = bookmarksFolderLocalService;
367            }
368    
369            private BookmarksFolderLocalService _bookmarksFolderLocalService;
370    }