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.bookmarks.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link BookmarksFolderService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       BookmarksFolderService
026     * @generated
027     */
028    public class BookmarksFolderServiceWrapper implements BookmarksFolderService,
029            ServiceWrapper<BookmarksFolderService> {
030            public BookmarksFolderServiceWrapper(
031                    BookmarksFolderService bookmarksFolderService) {
032                    _bookmarksFolderService = bookmarksFolderService;
033            }
034    
035            public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
036                    long parentFolderId, java.lang.String name,
037                    java.lang.String description,
038                    com.liferay.portal.service.ServiceContext serviceContext)
039                    throws com.liferay.portal.kernel.exception.PortalException,
040                            com.liferay.portal.kernel.exception.SystemException {
041                    return _bookmarksFolderService.addFolder(parentFolderId, name,
042                            description, serviceContext);
043            }
044    
045            public void deleteFolder(long folderId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _bookmarksFolderService.deleteFolder(folderId);
049            }
050    
051            public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
052                    long folderId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    return _bookmarksFolderService.getFolder(folderId);
056            }
057    
058            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
059                    long groupId)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return _bookmarksFolderService.getFolders(groupId);
062            }
063    
064            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
065                    long groupId, long parentFolderId)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return _bookmarksFolderService.getFolders(groupId, parentFolderId);
068            }
069    
070            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
071                    long groupId, long parentFolderId, int start, int end)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return _bookmarksFolderService.getFolders(groupId, parentFolderId,
074                            start, end);
075            }
076    
077            public int getFoldersCount(long groupId, long parentFolderId)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return _bookmarksFolderService.getFoldersCount(groupId, parentFolderId);
080            }
081    
082            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
083                    long groupId, long folderId)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    _bookmarksFolderService.getSubfolderIds(folderIds, groupId, folderId);
086            }
087    
088            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
089                    long folderId, long parentFolderId, java.lang.String name,
090                    java.lang.String description, boolean mergeWithParentFolder,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return _bookmarksFolderService.updateFolder(folderId, parentFolderId,
095                            name, description, mergeWithParentFolder, serviceContext);
096            }
097    
098            /**
099             * @deprecated Renamed to {@link #getWrappedService}
100             */
101            public BookmarksFolderService getWrappedBookmarksFolderService() {
102                    return _bookmarksFolderService;
103            }
104    
105            /**
106             * @deprecated Renamed to {@link #setWrappedService}
107             */
108            public void setWrappedBookmarksFolderService(
109                    BookmarksFolderService bookmarksFolderService) {
110                    _bookmarksFolderService = bookmarksFolderService;
111            }
112    
113            public BookmarksFolderService getWrappedService() {
114                    return _bookmarksFolderService;
115            }
116    
117            public void setWrappedService(BookmarksFolderService bookmarksFolderService) {
118                    _bookmarksFolderService = bookmarksFolderService;
119            }
120    
121            private BookmarksFolderService _bookmarksFolderService;
122    }