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