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 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .addEntry(userId, folderId, name, url, comments,
119 serviceContext);
120 }
121
122 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
123 java.lang.String uuid, long userId, long folderId,
124 java.lang.String name, java.lang.String url, java.lang.String comments,
125 com.liferay.portal.service.ServiceContext serviceContext)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService()
129 .addEntry(uuid, userId, folderId, name, url, comments,
130 serviceContext);
131 }
132
133 public static void addEntryResources(long entryId,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 getService()
138 .addEntryResources(entryId, addCommunityPermissions,
139 addGuestPermissions);
140 }
141
142 public static void addEntryResources(
143 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
144 boolean addCommunityPermissions, boolean addGuestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 getService()
148 .addEntryResources(entry, addCommunityPermissions,
149 addGuestPermissions);
150 }
151
152 public static void addEntryResources(long entryId,
153 java.lang.String[] communityPermissions,
154 java.lang.String[] guestPermissions)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 getService()
158 .addEntryResources(entryId, communityPermissions, guestPermissions);
159 }
160
161 public static void addEntryResources(
162 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
163 java.lang.String[] communityPermissions,
164 java.lang.String[] guestPermissions)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 getService()
168 .addEntryResources(entry, communityPermissions, guestPermissions);
169 }
170
171 public static void deleteEntries(long folderId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 getService().deleteEntries(folderId);
175 }
176
177 public static void deleteEntry(long entryId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException {
180 getService().deleteEntry(entryId);
181 }
182
183 public static void deleteEntry(
184 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 getService().deleteEntry(entry);
188 }
189
190 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
191 long folderId, int start, int end)
192 throws com.liferay.portal.SystemException {
193 return getService().getEntries(folderId, start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
197 long folderId, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.SystemException {
200 return getService().getEntries(folderId, start, end, orderByComparator);
201 }
202
203 public static int getEntriesCount(long folderId)
204 throws com.liferay.portal.SystemException {
205 return getService().getEntriesCount(folderId);
206 }
207
208 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
209 long entryId)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 return getService().getEntry(entryId);
213 }
214
215 public static int getFoldersEntriesCount(java.util.List<Long> folderIds)
216 throws com.liferay.portal.SystemException {
217 return getService().getFoldersEntriesCount(folderIds);
218 }
219
220 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
221 long groupId, int start, int end)
222 throws com.liferay.portal.SystemException {
223 return getService().getGroupEntries(groupId, start, end);
224 }
225
226 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
227 long groupId, long userId, int start, int end)
228 throws com.liferay.portal.SystemException {
229 return getService().getGroupEntries(groupId, userId, start, end);
230 }
231
232 public static int getGroupEntriesCount(long groupId)
233 throws com.liferay.portal.SystemException {
234 return getService().getGroupEntriesCount(groupId);
235 }
236
237 public static int getGroupEntriesCount(long groupId, long userId)
238 throws com.liferay.portal.SystemException {
239 return getService().getGroupEntriesCount(groupId, userId);
240 }
241
242 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
243 throws com.liferay.portal.SystemException {
244 return getService().getNoAssetEntries();
245 }
246
247 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
248 long entryId)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException {
251 return getService().openEntry(entryId);
252 }
253
254 public static void reIndex(long entryId)
255 throws com.liferay.portal.SystemException {
256 getService().reIndex(entryId);
257 }
258
259 public static void reIndex(
260 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
261 throws com.liferay.portal.SystemException {
262 getService().reIndex(entry);
263 }
264
265 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
266 long userId, long entryId, long folderId, java.lang.String name,
267 java.lang.String url, java.lang.String comments,
268 com.liferay.portal.service.ServiceContext serviceContext)
269 throws com.liferay.portal.PortalException,
270 com.liferay.portal.SystemException {
271 return getService()
272 .updateEntry(userId, entryId, folderId, name, url, comments,
273 serviceContext);
274 }
275
276 public static void updateTagsAsset(long userId,
277 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
278 java.lang.String[] tagsEntries)
279 throws com.liferay.portal.PortalException,
280 com.liferay.portal.SystemException {
281 getService().updateTagsAsset(userId, entry, tagsEntries);
282 }
283
284 public static BookmarksEntryLocalService getService() {
285 if (_service == null) {
286 throw new RuntimeException("BookmarksEntryLocalService is not set");
287 }
288
289 return _service;
290 }
291
292 public void setService(BookmarksEntryLocalService service) {
293 _service = service;
294 }
295
296 private static BookmarksEntryLocalService _service;
297 }