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