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