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.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 addFolderResources(
280                    com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
281                    boolean addCommunityPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _bookmarksFolderLocalService.addFolderResources(folder,
285                            addCommunityPermissions, addGuestPermissions);
286            }
287    
288            public void addFolderResources(
289                    com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
290                    java.lang.String[] communityPermissions,
291                    java.lang.String[] guestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _bookmarksFolderLocalService.addFolderResources(folder,
295                            communityPermissions, guestPermissions);
296            }
297    
298            public void addFolderResources(long folderId,
299                    boolean addCommunityPermissions, boolean addGuestPermissions)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _bookmarksFolderLocalService.addFolderResources(folderId,
303                            addCommunityPermissions, addGuestPermissions);
304            }
305    
306            public void addFolderResources(long folderId,
307                    java.lang.String[] communityPermissions,
308                    java.lang.String[] guestPermissions)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _bookmarksFolderLocalService.addFolderResources(folderId,
312                            communityPermissions, guestPermissions);
313            }
314    
315            public void deleteFolder(
316                    com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _bookmarksFolderLocalService.deleteFolder(folder);
320            }
321    
322            public void deleteFolder(long folderId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _bookmarksFolderLocalService.deleteFolder(folderId);
326            }
327    
328            public void deleteFolders(long groupId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    _bookmarksFolderLocalService.deleteFolders(groupId);
332            }
333    
334            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
335                    long companyId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _bookmarksFolderLocalService.getCompanyFolders(companyId, start,
338                            end);
339            }
340    
341            public int getCompanyFoldersCount(long companyId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _bookmarksFolderLocalService.getCompanyFoldersCount(companyId);
344            }
345    
346            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
347                    long folderId)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return _bookmarksFolderLocalService.getFolder(folderId);
351            }
352    
353            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
354                    long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return _bookmarksFolderLocalService.getFolders(groupId);
357            }
358    
359            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
360                    long groupId, long parentFolderId)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _bookmarksFolderLocalService.getFolders(groupId, parentFolderId);
363            }
364    
365            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
366                    long groupId, long parentFolderId, int start, int end)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _bookmarksFolderLocalService.getFolders(groupId, parentFolderId,
369                            start, end);
370            }
371    
372            public int getFoldersCount(long groupId, long parentFolderId)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _bookmarksFolderLocalService.getFoldersCount(groupId,
375                            parentFolderId);
376            }
377    
378            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
379                    long groupId, long folderId)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    _bookmarksFolderLocalService.getSubfolderIds(folderIds, groupId,
382                            folderId);
383            }
384    
385            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
386                    long folderId, long parentFolderId, java.lang.String name,
387                    java.lang.String description, boolean mergeWithParentFolder,
388                    com.liferay.portal.service.ServiceContext serviceContext)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    return _bookmarksFolderLocalService.updateFolder(folderId,
392                            parentFolderId, name, description, mergeWithParentFolder,
393                            serviceContext);
394            }
395    
396            public BookmarksFolderLocalService getWrappedBookmarksFolderLocalService() {
397                    return _bookmarksFolderLocalService;
398            }
399    
400            public void setWrappedBookmarksFolderLocalService(
401                    BookmarksFolderLocalService bookmarksFolderLocalService) {
402                    _bookmarksFolderLocalService = bookmarksFolderLocalService;
403            }
404    
405            private BookmarksFolderLocalService _bookmarksFolderLocalService;
406    }