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