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