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