1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service;
24  
25  
26  /**
27   * <a href="BookmarksEntryLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.bookmarks.service.impl.BookmarksEntryLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory
48   * @see com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceUtil
49   *
50   */
51  public interface BookmarksEntryLocalService {
52      public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
53          com.liferay.portlet.bookmarks.model.BookmarksEntry model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
65          com.liferay.portlet.bookmarks.model.BookmarksEntry model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence getBookmarksEntryPersistence();
69  
70      public void setBookmarksEntryPersistence(
71          com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence bookmarksEntryPersistence);
72  
73      public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder getBookmarksEntryFinder();
74  
75      public void setBookmarksEntryFinder(
76          com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder bookmarksEntryFinder);
77  
78      public com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence getBookmarksFolderPersistence();
79  
80      public void setBookmarksFolderPersistence(
81          com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence bookmarksFolderPersistence);
82  
83      public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
84  
85      public void setResourcePersistence(
86          com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
87  
88      public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
89  
90      public void setResourceFinder(
91          com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
92  
93      public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
94  
95      public void setUserPersistence(
96          com.liferay.portal.service.persistence.UserPersistence userPersistence);
97  
98      public com.liferay.portal.service.persistence.UserFinder getUserFinder();
99  
100     public void setUserFinder(
101         com.liferay.portal.service.persistence.UserFinder userFinder);
102 
103     public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
104 
105     public void setTagsAssetPersistence(
106         com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
107 
108     public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
109 
110     public void setTagsAssetFinder(
111         com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
112 
113     public void afterPropertiesSet();
114 
115     public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
116         long userId, long folderId, java.lang.String name,
117         java.lang.String url, java.lang.String comments,
118         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
119         boolean addGuestPermissions)
120         throws com.liferay.portal.SystemException, 
121             com.liferay.portal.PortalException;
122 
123     public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
124         java.lang.String uuid, long userId, long folderId,
125         java.lang.String name, java.lang.String url, java.lang.String comments,
126         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
127         boolean addGuestPermissions)
128         throws com.liferay.portal.SystemException, 
129             com.liferay.portal.PortalException;
130 
131     public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
132         long userId, long folderId, java.lang.String name,
133         java.lang.String url, java.lang.String comments,
134         java.lang.String[] tagsEntries,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.PortalException;
139 
140     public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
141         java.lang.String uuid, long userId, long folderId,
142         java.lang.String name, java.lang.String url, java.lang.String comments,
143         java.lang.String[] tagsEntries,
144         java.lang.Boolean addCommunityPermissions,
145         java.lang.Boolean addGuestPermissions,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.SystemException, 
149             com.liferay.portal.PortalException;
150 
151     public void addEntryResources(long folderId, long entryId,
152         boolean addCommunityPermissions, boolean addGuestPermissions)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portal.PortalException;
155 
156     public void addEntryResources(
157         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
158         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.SystemException, 
161             com.liferay.portal.PortalException;
162 
163     public void addEntryResources(long folderId, long entryId,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portal.PortalException;
168 
169     public void addEntryResources(
170         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
171         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
172         java.lang.String[] communityPermissions,
173         java.lang.String[] guestPermissions)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portal.PortalException;
176 
177     public void deleteEntries(long folderId)
178         throws com.liferay.portal.SystemException, 
179             com.liferay.portal.PortalException;
180 
181     public void deleteEntry(long entryId)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portal.PortalException;
184 
185     public void deleteEntry(
186         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
187         throws com.liferay.portal.SystemException, 
188             com.liferay.portal.PortalException;
189 
190     public java.util.List getEntries(long folderId, int begin, int end)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List getEntries(long folderId, int begin, int end,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.SystemException;
196 
197     public int getEntriesCount(long folderId)
198         throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
201         long entryId)
202         throws com.liferay.portal.SystemException, 
203             com.liferay.portal.PortalException;
204 
205     public int getFoldersEntriesCount(java.util.List folderIds)
206         throws com.liferay.portal.SystemException;
207 
208     public java.util.List getGroupEntries(long groupId, int begin, int end)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List getGroupEntries(long groupId, long userId, int begin,
212         int end) throws com.liferay.portal.SystemException;
213 
214     public int getGroupEntriesCount(long groupId)
215         throws com.liferay.portal.SystemException;
216 
217     public int getGroupEntriesCount(long groupId, long userId)
218         throws com.liferay.portal.SystemException;
219 
220     public java.util.List getNoAssetEntries()
221         throws com.liferay.portal.SystemException;
222 
223     public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
224         long entryId)
225         throws com.liferay.portal.SystemException, 
226             com.liferay.portal.PortalException;
227 
228     public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
229         long userId, long entryId, long folderId, java.lang.String name,
230         java.lang.String url, java.lang.String comments,
231         java.lang.String[] tagsEntries)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portal.PortalException;
234 
235     public void updateTagsAsset(long userId,
236         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
237         java.lang.String[] tagsEntries)
238         throws com.liferay.portal.SystemException, 
239             com.liferay.portal.PortalException;
240 }