1
19
20 package com.liferay.portlet.bookmarks.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface BookmarksEntryLocalService {
55 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
56 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
60 long entryId);
61
62 public void deleteBookmarksEntry(long entryId)
63 throws com.liferay.portal.SystemException,
64 com.liferay.portal.PortalException;
65
66 public void deleteBookmarksEntry(
67 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
80 long entryId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portal.PortalException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
86 int start, int end) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public int getBookmarksEntriesCount()
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
93 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
97 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
98 boolean merge) throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
101 long userId, long folderId, java.lang.String name,
102 java.lang.String url, java.lang.String comments,
103 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
104 boolean addGuestPermissions)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
109 java.lang.String uuid, long userId, long folderId,
110 java.lang.String name, java.lang.String url, java.lang.String comments,
111 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
112 boolean addGuestPermissions)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
117 long userId, long folderId, java.lang.String name,
118 java.lang.String url, java.lang.String comments,
119 java.lang.String[] tagsEntries,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
126 java.lang.String uuid, long userId, long folderId,
127 java.lang.String name, java.lang.String url, java.lang.String comments,
128 java.lang.String[] tagsEntries,
129 java.lang.Boolean addCommunityPermissions,
130 java.lang.Boolean addGuestPermissions,
131 java.lang.String[] communityPermissions,
132 java.lang.String[] guestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void addEntryResources(long entryId,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void addEntryResources(
142 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
143 boolean addCommunityPermissions, boolean addGuestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void addEntryResources(long entryId,
148 java.lang.String[] communityPermissions,
149 java.lang.String[] guestPermissions)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 public void addEntryResources(
154 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
155 java.lang.String[] communityPermissions,
156 java.lang.String[] guestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deleteEntries(long folderId)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deleteEntry(long entryId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deleteEntry(
169 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
175 long folderId, int start, int end)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
180 long folderId, int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public int getEntriesCount(long folderId)
186 throws com.liferay.portal.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
190 long entryId)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int getFoldersEntriesCount(java.util.List<Long> folderIds)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
200 long groupId, int start, int end)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
205 long groupId, long userId, int start, int end)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getGroupEntriesCount(long groupId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int getGroupEntriesCount(long groupId, long userId)
214 throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
218 throws com.liferay.portal.SystemException;
219
220 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
221 long entryId)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public void reIndex(
230 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
231 throws com.liferay.portal.SystemException;
232
233 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
234 long userId, long entryId, long folderId, java.lang.String name,
235 java.lang.String url, java.lang.String comments,
236 java.lang.String[] tagsEntries)
237 throws com.liferay.portal.PortalException,
238 com.liferay.portal.SystemException;
239
240 public void updateTagsAsset(long userId,
241 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
242 java.lang.String[] tagsEntries)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException;
245 }