001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class BookmarksEntryLocalServiceUtil {
033 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
034 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addBookmarksEntry(bookmarksEntry);
037 }
038
039 public static com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
040 long entryId) {
041 return getService().createBookmarksEntry(entryId);
042 }
043
044 public static void deleteBookmarksEntry(long entryId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteBookmarksEntry(entryId);
048 }
049
050 public static void deleteBookmarksEntry(
051 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteBookmarksEntry(bookmarksEntry);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
087 long entryId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getBookmarksEntry(entryId);
091 }
092
093 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntryByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getBookmarksEntryByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getBookmarksEntries(start, end);
104 }
105
106 public static int getBookmarksEntriesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getBookmarksEntriesCount();
109 }
110
111 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
112 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateBookmarksEntry(bookmarksEntry);
115 }
116
117 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
118 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateBookmarksEntry(bookmarksEntry, merge);
122 }
123
124 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
125 long userId, long groupId, long folderId, java.lang.String name,
126 java.lang.String url, java.lang.String comments,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .addEntry(userId, groupId, folderId, name, url, comments,
132 serviceContext);
133 }
134
135 public static void addEntryResources(
136 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 getService()
141 .addEntryResources(entry, addCommunityPermissions,
142 addGuestPermissions);
143 }
144
145 public static void addEntryResources(
146 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 getService()
152 .addEntryResources(entry, communityPermissions, guestPermissions);
153 }
154
155 public static void addEntryResources(long entryId,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 getService()
160 .addEntryResources(entryId, addCommunityPermissions,
161 addGuestPermissions);
162 }
163
164 public static void addEntryResources(long entryId,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 getService()
170 .addEntryResources(entryId, communityPermissions, guestPermissions);
171 }
172
173 public static void deleteEntries(long groupId, long folderId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException {
176 getService().deleteEntries(groupId, folderId);
177 }
178
179 public static void deleteEntry(
180 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 getService().deleteEntry(entry);
184 }
185
186 public static void deleteEntry(long entryId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 getService().deleteEntry(entryId);
190 }
191
192 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
193 long groupId, long folderId, int start, int end)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getEntries(groupId, folderId, start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
199 long groupId, long folderId, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getService()
203 .getEntries(groupId, folderId, start, end, orderByComparator);
204 }
205
206 public static int getEntriesCount(long groupId, long folderId)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getService().getEntriesCount(groupId, folderId);
209 }
210
211 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
212 long entryId)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException {
215 return getService().getEntry(entryId);
216 }
217
218 public static int getFoldersEntriesCount(long groupId,
219 java.util.List<java.lang.Long> folderIds)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getFoldersEntriesCount(groupId, folderIds);
222 }
223
224 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
225 long groupId, int start, int end)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().getGroupEntries(groupId, start, end);
228 }
229
230 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
231 long groupId, long userId, int start, int end)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().getGroupEntries(groupId, userId, start, end);
234 }
235
236 public static int getGroupEntriesCount(long groupId)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getService().getGroupEntriesCount(groupId);
239 }
240
241 public static int getGroupEntriesCount(long groupId, long userId)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().getGroupEntriesCount(groupId, userId);
244 }
245
246 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getService().getNoAssetEntries();
249 }
250
251 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
252 long userId, long entryId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().openEntry(userId, entryId);
256 }
257
258 public static void updateAsset(long userId,
259 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
260 long[] assetCategoryIds, java.lang.String[] assetTagNames)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 getService().updateAsset(userId, entry, assetCategoryIds, assetTagNames);
264 }
265
266 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
267 long userId, long entryId, long groupId, long folderId,
268 java.lang.String name, java.lang.String url, java.lang.String comments,
269 com.liferay.portal.service.ServiceContext serviceContext)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 return getService()
273 .updateEntry(userId, entryId, groupId, folderId, name, url,
274 comments, serviceContext);
275 }
276
277 public static BookmarksEntryLocalService getService() {
278 if (_service == null) {
279 _service = (BookmarksEntryLocalService)PortalBeanLocatorUtil.locate(BookmarksEntryLocalService.class.getName());
280 }
281
282 return _service;
283 }
284
285 public void setService(BookmarksEntryLocalService service) {
286 _service = service;
287 }
288
289 private static BookmarksEntryLocalService _service;
290 }