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