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 BookmarksEntry. This utility wraps
022     * {@link com.liferay.portlet.bookmarks.service.impl.BookmarksEntryServiceImpl} 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 BookmarksEntryService
030     * @see com.liferay.portlet.bookmarks.service.base.BookmarksEntryServiceBaseImpl
031     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksEntryServiceImpl
032     * @generated
033     */
034    public class BookmarksEntryServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
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.BookmarksEntry addEntry(
060                    long groupId, long folderId, java.lang.String name,
061                    java.lang.String url, 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                                       .addEntry(groupId, folderId, name, url, description,
067                            serviceContext);
068            }
069    
070            public static void deleteEntry(long entryId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    getService().deleteEntry(entryId);
074            }
075    
076            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
077                    long groupId, long folderId, int start, int end)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return getService().getEntries(groupId, folderId, start, end);
080            }
081    
082            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
083                    long groupId, long folderId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return getService()
087                                       .getEntries(groupId, folderId, start, end, orderByComparator);
088            }
089    
090            public static int getEntriesCount(long groupId, long folderId)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return getService().getEntriesCount(groupId, folderId);
093            }
094    
095            public static int getEntriesCount(long groupId, long folderId, int status)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getEntriesCount(groupId, folderId, status);
098            }
099    
100            public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
101                    long entryId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return getService().getEntry(entryId);
105            }
106    
107            public static int getFoldersEntriesCount(long groupId,
108                    java.util.List<java.lang.Long> folderIds)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return getService().getFoldersEntriesCount(groupId, folderIds);
111            }
112    
113            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
114                    long groupId, int start, int end)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    return getService().getGroupEntries(groupId, start, end);
118            }
119    
120            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
121                    long groupId, long userId, int start, int end)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService().getGroupEntries(groupId, userId, start, end);
125            }
126    
127            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
128                    long groupId, long userId, long rootFolderId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException {
131                    return getService()
132                                       .getGroupEntries(groupId, userId, rootFolderId, start, end);
133            }
134    
135            public static int getGroupEntriesCount(long groupId)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException {
138                    return getService().getGroupEntriesCount(groupId);
139            }
140    
141            public static int getGroupEntriesCount(long groupId, long userId)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    return getService().getGroupEntriesCount(groupId, userId);
145            }
146    
147            public static int getGroupEntriesCount(long groupId, long userId,
148                    long rootFolderId)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    return getService().getGroupEntriesCount(groupId, userId, rootFolderId);
152            }
153    
154            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
155                    long entryId, long parentFolderId)
156                    throws com.liferay.portal.kernel.exception.PortalException,
157                            com.liferay.portal.kernel.exception.SystemException {
158                    return getService().moveEntry(entryId, parentFolderId);
159            }
160    
161            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
162                    long entryId, long parentFolderId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return getService().moveEntryFromTrash(entryId, parentFolderId);
166            }
167    
168            public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
169                    long entryId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return getService().moveEntryToTrash(entryId);
173            }
174    
175            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
176                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getService().openEntry(entry);
180            }
181    
182            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
183                    long entryId)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return getService().openEntry(entryId);
187            }
188    
189            public static void restoreEntryFromTrash(long entryId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    getService().restoreEntryFromTrash(entryId);
193            }
194    
195            public static com.liferay.portal.kernel.search.Hits search(long groupId,
196                    long creatorUserId, int status, int start, int end)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    return getService().search(groupId, creatorUserId, status, start, end);
200            }
201    
202            public static void subscribeEntry(long entryId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    getService().subscribeEntry(entryId);
206            }
207    
208            public static void unsubscribeEntry(long entryId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    getService().unsubscribeEntry(entryId);
212            }
213    
214            public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
215                    long entryId, long groupId, long folderId, java.lang.String name,
216                    java.lang.String url, java.lang.String description,
217                    com.liferay.portal.service.ServiceContext serviceContext)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    return getService()
221                                       .updateEntry(entryId, groupId, folderId, name, url,
222                            description, serviceContext);
223            }
224    
225            public static BookmarksEntryService getService() {
226                    if (_service == null) {
227                            _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
228    
229                            ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
230                                    "_service");
231                    }
232    
233                    return _service;
234            }
235    
236            /**
237             * @deprecated As of 6.2.0
238             */
239            public void setService(BookmarksEntryService service) {
240            }
241    
242            private static BookmarksEntryService _service;
243    }