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