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