1
22
23 package com.liferay.portlet.bookmarks.service;
24
25
26
53 public class BookmarksEntryLocalServiceUtil {
54 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
55 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
56 throws com.liferay.portal.SystemException {
57 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
58
59 return bookmarksEntryLocalService.addBookmarksEntry(bookmarksEntry);
60 }
61
62 public static void deleteBookmarksEntry(long entryId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
66
67 bookmarksEntryLocalService.deleteBookmarksEntry(entryId);
68 }
69
70 public static void deleteBookmarksEntry(
71 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException {
74 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
75
76 bookmarksEntryLocalService.deleteBookmarksEntry(bookmarksEntry);
77 }
78
79 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> dynamicQuery(
80 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81 throws com.liferay.portal.SystemException {
82 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
83
84 return bookmarksEntryLocalService.dynamicQuery(queryInitializer);
85 }
86
87 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> dynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException {
90 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
91
92 return bookmarksEntryLocalService.dynamicQuery(queryInitializer, begin,
93 end);
94 }
95
96 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
97 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
98 throws com.liferay.portal.SystemException {
99 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
100
101 return bookmarksEntryLocalService.updateBookmarksEntry(bookmarksEntry);
102 }
103
104 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
105 long userId, long folderId, java.lang.String name,
106 java.lang.String url, java.lang.String comments,
107 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
108 boolean addGuestPermissions)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
112
113 return bookmarksEntryLocalService.addEntry(userId, folderId, name, url,
114 comments, tagsEntries, addCommunityPermissions, addGuestPermissions);
115 }
116
117 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
118 java.lang.String uuid, long userId, long folderId,
119 java.lang.String name, java.lang.String url, java.lang.String comments,
120 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
121 boolean addGuestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
125
126 return bookmarksEntryLocalService.addEntry(uuid, userId, folderId,
127 name, url, comments, tagsEntries, addCommunityPermissions,
128 addGuestPermissions);
129 }
130
131 public static 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.PortalException,
138 com.liferay.portal.SystemException {
139 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
140
141 return bookmarksEntryLocalService.addEntry(userId, folderId, name, url,
142 comments, tagsEntries, communityPermissions, guestPermissions);
143 }
144
145 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
146 java.lang.String uuid, long userId, long folderId,
147 java.lang.String name, java.lang.String url, java.lang.String comments,
148 java.lang.String[] tagsEntries,
149 java.lang.Boolean addCommunityPermissions,
150 java.lang.Boolean addGuestPermissions,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
156
157 return bookmarksEntryLocalService.addEntry(uuid, userId, folderId,
158 name, url, comments, tagsEntries, addCommunityPermissions,
159 addGuestPermissions, communityPermissions, guestPermissions);
160 }
161
162 public static void addEntryResources(long folderId, long entryId,
163 boolean addCommunityPermissions, boolean addGuestPermissions)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
167
168 bookmarksEntryLocalService.addEntryResources(folderId, entryId,
169 addCommunityPermissions, addGuestPermissions);
170 }
171
172 public static void addEntryResources(
173 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
174 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
175 boolean addCommunityPermissions, boolean addGuestPermissions)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException {
178 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
179
180 bookmarksEntryLocalService.addEntryResources(folder, entry,
181 addCommunityPermissions, addGuestPermissions);
182 }
183
184 public static void addEntryResources(long folderId, long entryId,
185 java.lang.String[] communityPermissions,
186 java.lang.String[] guestPermissions)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
190
191 bookmarksEntryLocalService.addEntryResources(folderId, entryId,
192 communityPermissions, guestPermissions);
193 }
194
195 public static void addEntryResources(
196 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
197 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
198 java.lang.String[] communityPermissions,
199 java.lang.String[] guestPermissions)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
203
204 bookmarksEntryLocalService.addEntryResources(folder, entry,
205 communityPermissions, guestPermissions);
206 }
207
208 public static void deleteEntries(long folderId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
212
213 bookmarksEntryLocalService.deleteEntries(folderId);
214 }
215
216 public static void deleteEntry(long entryId)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
220
221 bookmarksEntryLocalService.deleteEntry(entryId);
222 }
223
224 public static void deleteEntry(
225 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
226 throws com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException {
228 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
229
230 bookmarksEntryLocalService.deleteEntry(entry);
231 }
232
233 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
234 long folderId, int begin, int end)
235 throws com.liferay.portal.SystemException {
236 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
237
238 return bookmarksEntryLocalService.getEntries(folderId, begin, end);
239 }
240
241 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
242 long folderId, int begin, int end,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.SystemException {
245 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
246
247 return bookmarksEntryLocalService.getEntries(folderId, begin, end,
248 orderByComparator);
249 }
250
251 public static int getEntriesCount(long folderId)
252 throws com.liferay.portal.SystemException {
253 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
254
255 return bookmarksEntryLocalService.getEntriesCount(folderId);
256 }
257
258 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
259 long entryId)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException {
262 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
263
264 return bookmarksEntryLocalService.getEntry(entryId);
265 }
266
267 public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
268 throws com.liferay.portal.SystemException {
269 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
270
271 return bookmarksEntryLocalService.getFoldersEntriesCount(folderIds);
272 }
273
274 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
275 long groupId, int begin, int end)
276 throws com.liferay.portal.SystemException {
277 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
278
279 return bookmarksEntryLocalService.getGroupEntries(groupId, begin, end);
280 }
281
282 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
283 long groupId, long userId, int begin, int end)
284 throws com.liferay.portal.SystemException {
285 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
286
287 return bookmarksEntryLocalService.getGroupEntries(groupId, userId,
288 begin, end);
289 }
290
291 public static int getGroupEntriesCount(long groupId)
292 throws com.liferay.portal.SystemException {
293 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
294
295 return bookmarksEntryLocalService.getGroupEntriesCount(groupId);
296 }
297
298 public static int getGroupEntriesCount(long groupId, long userId)
299 throws com.liferay.portal.SystemException {
300 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
301
302 return bookmarksEntryLocalService.getGroupEntriesCount(groupId, userId);
303 }
304
305 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
306 throws com.liferay.portal.SystemException {
307 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
308
309 return bookmarksEntryLocalService.getNoAssetEntries();
310 }
311
312 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
313 long entryId)
314 throws com.liferay.portal.PortalException,
315 com.liferay.portal.SystemException {
316 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
317
318 return bookmarksEntryLocalService.openEntry(entryId);
319 }
320
321 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
322 long userId, long entryId, long folderId, java.lang.String name,
323 java.lang.String url, java.lang.String comments,
324 java.lang.String[] tagsEntries)
325 throws com.liferay.portal.PortalException,
326 com.liferay.portal.SystemException {
327 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
328
329 return bookmarksEntryLocalService.updateEntry(userId, entryId,
330 folderId, name, url, comments, tagsEntries);
331 }
332
333 public static void updateTagsAsset(long userId,
334 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
335 java.lang.String[] tagsEntries)
336 throws com.liferay.portal.PortalException,
337 com.liferay.portal.SystemException {
338 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
339
340 bookmarksEntryLocalService.updateTagsAsset(userId, entry, tagsEntries);
341 }
342 }