001    /**
002     * Copyright (c) 2000-2013 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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for BookmarksFolder. This utility wraps
022     * {@link com.liferay.portlet.bookmarks.service.impl.BookmarksFolderServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see BookmarksFolderService
030     * @see com.liferay.portlet.bookmarks.service.base.BookmarksFolderServiceBaseImpl
031     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksFolderServiceImpl
032     * @generated
033     */
034    public class BookmarksFolderServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.bookmarks.service.impl.BookmarksFolderServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
060                    long parentFolderId, java.lang.String name,
061                    java.lang.String description,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return getService()
066                                       .addFolder(parentFolderId, name, description, serviceContext);
067            }
068    
069            public static void deleteFolder(long folderId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    getService().deleteFolder(folderId);
073            }
074    
075            public static void deleteFolder(long folderId, boolean includeTrashedEntries)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    getService().deleteFolder(folderId, includeTrashedEntries);
079            }
080    
081            public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
082                    long folderId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getFolder(folderId);
086            }
087    
088            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
089                    long folderId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return getService().getFolderIds(groupId, folderId);
093            }
094    
095            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
096                    long groupId)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getService().getFolders(groupId);
099            }
100    
101            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
102                    long groupId, long parentFolderId)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return getService().getFolders(groupId, parentFolderId);
105            }
106    
107            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
108                    long groupId, long parentFolderId, int start, int end)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return getService().getFolders(groupId, parentFolderId, start, end);
111            }
112    
113            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
114                    long groupId, long parentFolderId, int status, int start, int end)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getService()
117                                       .getFolders(groupId, parentFolderId, status, start, end);
118            }
119    
120            public static java.util.List<java.lang.Object> getFoldersAndEntries(
121                    long groupId, long folderId)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getService().getFoldersAndEntries(groupId, folderId);
124            }
125    
126            public static java.util.List<java.lang.Object> getFoldersAndEntries(
127                    long groupId, long folderId, int status)
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return getService().getFoldersAndEntries(groupId, folderId, status);
130            }
131    
132            public static java.util.List<java.lang.Object> getFoldersAndEntries(
133                    long groupId, long folderId, int status, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return getService()
136                                       .getFoldersAndEntries(groupId, folderId, status, start, end);
137            }
138    
139            public static int getFoldersAndEntriesCount(long groupId, long folderId)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return getService().getFoldersAndEntriesCount(groupId, folderId);
142            }
143    
144            public static int getFoldersAndEntriesCount(long groupId, long folderId,
145                    int status) throws com.liferay.portal.kernel.exception.SystemException {
146                    return getService().getFoldersAndEntriesCount(groupId, folderId, status);
147            }
148    
149            public static int getFoldersCount(long groupId, long parentFolderId)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService().getFoldersCount(groupId, parentFolderId);
152            }
153    
154            public static int getFoldersCount(long groupId, long parentFolderId,
155                    int status) throws com.liferay.portal.kernel.exception.SystemException {
156                    return getService().getFoldersCount(groupId, parentFolderId, status);
157            }
158    
159            public static void getSubfolderIds(
160                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    getService().getSubfolderIds(folderIds, groupId, folderId);
163            }
164    
165            public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
166                    long folderId, boolean recurse)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().getSubfolderIds(groupId, folderId, recurse);
169            }
170    
171            public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(
172                    long folderId, long parentFolderId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return getService().moveFolder(folderId, parentFolderId);
176            }
177    
178            public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
179                    long folderId, long parentFolderId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return getService().moveFolderFromTrash(folderId, parentFolderId);
183            }
184    
185            public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
186                    long folderId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return getService().moveFolderToTrash(folderId);
190            }
191    
192            public static void restoreFolderFromTrash(long folderId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    getService().restoreFolderFromTrash(folderId);
196            }
197    
198            public static void subscribeFolder(long groupId, long folderId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    getService().subscribeFolder(groupId, folderId);
202            }
203    
204            public static void unsubscribeFolder(long groupId, long folderId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    getService().unsubscribeFolder(groupId, folderId);
208            }
209    
210            public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
211                    long folderId, long parentFolderId, java.lang.String name,
212                    java.lang.String description, boolean mergeWithParentFolder,
213                    com.liferay.portal.service.ServiceContext serviceContext)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException {
216                    return getService()
217                                       .updateFolder(folderId, parentFolderId, name, description,
218                            mergeWithParentFolder, serviceContext);
219            }
220    
221            public static BookmarksFolderService getService() {
222                    if (_service == null) {
223                            _service = (BookmarksFolderService)PortalBeanLocatorUtil.locate(BookmarksFolderService.class.getName());
224    
225                            ReferenceRegistry.registerReference(BookmarksFolderServiceUtil.class,
226                                    "_service");
227                    }
228    
229                    return _service;
230            }
231    
232            /**
233             * @deprecated As of 6.2.0
234             */
235            public void setService(BookmarksFolderService service) {
236            }
237    
238            private static BookmarksFolderService _service;
239    }