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.SystemException {
110                    return getService().getGroupEntries(groupId, start, end);
111            }
112    
113            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
114                    long groupId, long userId, int start, int end)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getService().getGroupEntries(groupId, userId, start, end);
117            }
118    
119            public static int getGroupEntriesCount(long groupId)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().getGroupEntriesCount(groupId);
122            }
123    
124            public static int getGroupEntriesCount(long groupId, long userId)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getService().getGroupEntriesCount(groupId, userId);
127            }
128    
129            public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
130                    long entryId)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return getService().openEntry(entryId);
134            }
135    
136            public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
137                    long entryId, long groupId, long folderId, java.lang.String name,
138                    java.lang.String url, java.lang.String description,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return getService()
143                                       .updateEntry(entryId, groupId, folderId, name, url,
144                            description, serviceContext);
145            }
146    
147            public static BookmarksEntryService getService() {
148                    if (_service == null) {
149                            _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
150    
151                            ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
152                                    "_service");
153                    }
154    
155                    return _service;
156            }
157    
158            /**
159             * @deprecated
160             */
161            public void setService(BookmarksEntryService service) {
162            }
163    
164            private static BookmarksEntryService _service;
165    }