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