001    /**
002     * Copyright (c) 2000-2010 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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.bookmarks.service.impl.BookmarksEntryLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       BookmarksEntryLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface BookmarksEntryLocalService {
043            public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
044                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
048                    long entryId);
049    
050            public void deleteBookmarksEntry(long entryId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteBookmarksEntry(
055                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
081                    long entryId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
087                    java.lang.String uuid, long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getBookmarksEntriesCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
101                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
105                    com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
106                    boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
110                    long userId, long groupId, long folderId, java.lang.String name,
111                    java.lang.String url, java.lang.String comments,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public void addEntryResources(
117                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
118                    boolean addCommunityPermissions, boolean addGuestPermissions)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public void addEntryResources(
123                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
124                    java.lang.String[] communityPermissions,
125                    java.lang.String[] guestPermissions)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public void addEntryResources(long entryId,
130                    boolean addCommunityPermissions, boolean addGuestPermissions)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException;
133    
134            public void addEntryResources(long entryId,
135                    java.lang.String[] communityPermissions,
136                    java.lang.String[] guestPermissions)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            public void deleteEntries(long groupId, long folderId)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void deleteEntry(
145                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    
149            public void deleteEntry(long entryId)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
155                    long groupId, long folderId, int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
160                    long groupId, long folderId, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165            public int getEntriesCount(long groupId, long folderId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169            public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
170                    long entryId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException;
173    
174            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175            public int getFoldersEntriesCount(long groupId,
176                    java.util.List<java.lang.Long> folderIds)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
181                    long groupId, int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
186                    long groupId, long userId, int start, int end)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190            public int getGroupEntriesCount(long groupId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194            public int getGroupEntriesCount(long groupId, long userId)
195                    throws com.liferay.portal.kernel.exception.SystemException;
196    
197            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
202                    long userId, long entryId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException;
205    
206            public void updateAsset(long userId,
207                    com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
208                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException;
211    
212            public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
213                    long userId, long entryId, long groupId, long folderId,
214                    java.lang.String name, java.lang.String url, java.lang.String comments,
215                    com.liferay.portal.service.ServiceContext serviceContext)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException;
218    }