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 bookmarksEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteBookmarksEntry(long entryId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteBookmarksEntry(
61          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
74          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
78          long userId, long folderId, java.lang.String name,
79          java.lang.String url, java.lang.String comments,
80          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
81          boolean addGuestPermissions)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portal.PortalException;
84  
85      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
86          java.lang.String uuid, long userId, long folderId,
87          java.lang.String name, java.lang.String url, java.lang.String comments,
88          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
89          boolean addGuestPermissions)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portal.PortalException;
92  
93      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
94          long userId, long folderId, java.lang.String name,
95          java.lang.String url, java.lang.String comments,
96          java.lang.String[] tagsEntries,
97          java.lang.String[] communityPermissions,
98          java.lang.String[] guestPermissions)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portal.PortalException;
101 
102     public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
103         java.lang.String uuid, long userId, long folderId,
104         java.lang.String name, java.lang.String url, java.lang.String comments,
105         java.lang.String[] tagsEntries,
106         java.lang.Boolean addCommunityPermissions,
107         java.lang.Boolean addGuestPermissions,
108         java.lang.String[] communityPermissions,
109         java.lang.String[] guestPermissions)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portal.PortalException;
112 
113     public void addEntryResources(long folderId, long entryId,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portal.PortalException;
117 
118     public void addEntryResources(
119         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
120         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
121         boolean addCommunityPermissions, boolean addGuestPermissions)
122         throws com.liferay.portal.SystemException,
123             com.liferay.portal.PortalException;
124 
125     public void addEntryResources(long folderId, long entryId,
126         java.lang.String[] communityPermissions,
127         java.lang.String[] guestPermissions)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portal.PortalException;
130 
131     public void addEntryResources(
132         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
133         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portal.PortalException;
138 
139     public void deleteEntries(long folderId)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portal.PortalException;
142 
143     public void deleteEntry(long entryId)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portal.PortalException;
146 
147     public void deleteEntry(
148         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portal.PortalException;
151 
152     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
153         long folderId, int begin, int end)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
157         long folderId, int begin, int end,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.SystemException;
160 
161     public int getEntriesCount(long folderId)
162         throws com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
165         long entryId)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portal.PortalException;
168 
169     public int getFoldersEntriesCount(java.util.List<Long> folderIds)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
173         long groupId, int begin, int end)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
177         long groupId, long userId, int begin, int end)
178         throws com.liferay.portal.SystemException;
179 
180     public int getGroupEntriesCount(long groupId)
181         throws com.liferay.portal.SystemException;
182 
183     public int getGroupEntriesCount(long groupId, long userId)
184         throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
187         throws com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
190         long entryId)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portal.PortalException;
193 
194     public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
195         long userId, long entryId, long folderId, java.lang.String name,
196         java.lang.String url, java.lang.String comments,
197         java.lang.String[] tagsEntries)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portal.PortalException;
200 
201     public void updateTagsAsset(long userId,
202         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
203         java.lang.String[] tagsEntries)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portal.PortalException;
206 }