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