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