001    /**
002     * Copyright (c) 2000-present 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            public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
044                    long groupId, long folderId, java.lang.String name,
045                    java.lang.String url, java.lang.String description,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return getService()
049                                       .addEntry(groupId, folderId, name, url, description,
050                            serviceContext);
051            }
052    
053            public static void deleteEntry(long entryId)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    getService().deleteEntry(entryId);
056            }
057    
058            /**
059            * Returns the Spring bean ID for this bean.
060            *
061            * @return the Spring bean ID for this bean
062            */
063            public static java.lang.String getBeanIdentifier() {
064                    return getService().getBeanIdentifier();
065            }
066    
067            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
068                    long groupId, long folderId, int start, int end) {
069                    return getService().getEntries(groupId, folderId, start, end);
070            }
071    
072            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
073                    long groupId, long folderId, int start, int end,
074                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.bookmarks.model.BookmarksEntry> orderByComparator) {
075                    return getService()
076                                       .getEntries(groupId, folderId, start, end, orderByComparator);
077            }
078    
079            public static int getEntriesCount(long groupId, long folderId) {
080                    return getService().getEntriesCount(groupId, folderId);
081            }
082    
083            public static int getEntriesCount(long groupId, long folderId, int status) {
084                    return getService().getEntriesCount(groupId, folderId, status);
085            }
086    
087            public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
088                    long entryId)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return getService().getEntry(entryId);
091            }
092    
093            public static int getFoldersEntriesCount(long groupId,
094                    java.util.List<java.lang.Long> folderIds) {
095                    return getService().getFoldersEntriesCount(groupId, folderIds);
096            }
097    
098            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
099                    long groupId, int start, int end)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService().getGroupEntries(groupId, start, end);
102            }
103    
104            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
105                    long groupId, long userId, long rootFolderId, int start, int end)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return getService()
108                                       .getGroupEntries(groupId, userId, rootFolderId, start, end);
109            }
110    
111            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
112                    long groupId, long userId, int start, int end)
113                    throws com.liferay.portal.kernel.exception.PortalException {
114                    return getService().getGroupEntries(groupId, userId, start, end);
115            }
116    
117            public static int getGroupEntriesCount(long groupId)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    return getService().getGroupEntriesCount(groupId);
120            }
121    
122            public static int getGroupEntriesCount(long groupId, long userId)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    return getService().getGroupEntriesCount(groupId, userId);
125            }
126    
127            public static int getGroupEntriesCount(long groupId, long userId,
128                    long rootFolderId)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return getService().getGroupEntriesCount(groupId, userId, rootFolderId);
131            }
132    
133            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
134                    long entryId, long parentFolderId)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    return getService().moveEntry(entryId, parentFolderId);
137            }
138    
139            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
140                    long entryId, long parentFolderId)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return getService().moveEntryFromTrash(entryId, parentFolderId);
143            }
144    
145            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
146                    long entryId)
147                    throws com.liferay.portal.kernel.exception.PortalException {
148                    return getService().moveEntryToTrash(entryId);
149            }
150    
151            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
152                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return getService().openEntry(entry);
155            }
156    
157            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
158                    long entryId)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    return getService().openEntry(entryId);
161            }
162    
163            public static void restoreEntryFromTrash(long entryId)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    getService().restoreEntryFromTrash(entryId);
166            }
167    
168            public static com.liferay.portal.kernel.search.Hits search(long groupId,
169                    long creatorUserId, int status, int start, int end)
170                    throws com.liferay.portal.kernel.exception.PortalException {
171                    return getService().search(groupId, creatorUserId, status, start, end);
172            }
173    
174            /**
175            * Sets the Spring bean ID for this bean.
176            *
177            * @param beanIdentifier the Spring bean ID for this bean
178            */
179            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
180                    getService().setBeanIdentifier(beanIdentifier);
181            }
182    
183            public static void subscribeEntry(long entryId)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    getService().subscribeEntry(entryId);
186            }
187    
188            public static void unsubscribeEntry(long entryId)
189                    throws com.liferay.portal.kernel.exception.PortalException {
190                    getService().unsubscribeEntry(entryId);
191            }
192    
193            public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
194                    long entryId, long groupId, long folderId, java.lang.String name,
195                    java.lang.String url, java.lang.String description,
196                    com.liferay.portal.service.ServiceContext serviceContext)
197                    throws com.liferay.portal.kernel.exception.PortalException {
198                    return getService()
199                                       .updateEntry(entryId, groupId, folderId, name, url,
200                            description, serviceContext);
201            }
202    
203            public static BookmarksEntryService getService() {
204                    if (_service == null) {
205                            _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
206    
207                            ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
208                                    "_service");
209                    }
210    
211                    return _service;
212            }
213    
214            /**
215             * @deprecated As of 6.2.0
216             */
217            @Deprecated
218            public void setService(BookmarksEntryService service) {
219            }
220    
221            private static BookmarksEntryService _service;
222    }