1
22
23 package com.liferay.portlet.bookmarks.service;
24
25
51 public class BookmarksEntryLocalServiceUtil {
52 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
53 com.liferay.portlet.bookmarks.model.BookmarksEntry model)
54 throws com.liferay.portal.SystemException {
55 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
56
57 return bookmarksEntryLocalService.addBookmarksEntry(model);
58 }
59
60 public static java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62 throws com.liferay.portal.SystemException {
63 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
64
65 return bookmarksEntryLocalService.dynamicQuery(queryInitializer);
66 }
67
68 public static java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70 int begin, int end) throws com.liferay.portal.SystemException {
71 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
72
73 return bookmarksEntryLocalService.dynamicQuery(queryInitializer, begin,
74 end);
75 }
76
77 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
78 com.liferay.portlet.bookmarks.model.BookmarksEntry model)
79 throws com.liferay.portal.SystemException {
80 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
81
82 return bookmarksEntryLocalService.updateBookmarksEntry(model);
83 }
84
85 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
86 long userId, long folderId, java.lang.String name,
87 java.lang.String url, java.lang.String comments,
88 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
89 boolean addGuestPermissions)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException {
92 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
93
94 return bookmarksEntryLocalService.addEntry(userId, folderId, name, url,
95 comments, tagsEntries, addCommunityPermissions, addGuestPermissions);
96 }
97
98 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
99 long userId, long folderId, java.lang.String name,
100 java.lang.String url, java.lang.String comments,
101 java.lang.String[] tagsEntries,
102 java.lang.String[] communityPermissions,
103 java.lang.String[] guestPermissions)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
107
108 return bookmarksEntryLocalService.addEntry(userId, folderId, name, url,
109 comments, tagsEntries, communityPermissions, guestPermissions);
110 }
111
112 public static com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
113 long userId, long folderId, java.lang.String name,
114 java.lang.String url, java.lang.String comments,
115 java.lang.String[] tagsEntries,
116 java.lang.Boolean addCommunityPermissions,
117 java.lang.Boolean addGuestPermissions,
118 java.lang.String[] communityPermissions,
119 java.lang.String[] guestPermissions)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
123
124 return bookmarksEntryLocalService.addEntry(userId, folderId, name, url,
125 comments, tagsEntries, addCommunityPermissions,
126 addGuestPermissions, communityPermissions, guestPermissions);
127 }
128
129 public static void addEntryResources(long folderId, long entryId,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
134 bookmarksEntryLocalService.addEntryResources(folderId, entryId,
135 addCommunityPermissions, addGuestPermissions);
136 }
137
138 public static void addEntryResources(
139 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
140 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
141 boolean addCommunityPermissions, boolean addGuestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
145 bookmarksEntryLocalService.addEntryResources(folder, entry,
146 addCommunityPermissions, addGuestPermissions);
147 }
148
149 public static void addEntryResources(long folderId, long entryId,
150 java.lang.String[] communityPermissions,
151 java.lang.String[] guestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
155 bookmarksEntryLocalService.addEntryResources(folderId, entryId,
156 communityPermissions, guestPermissions);
157 }
158
159 public static void addEntryResources(
160 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
161 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
167 bookmarksEntryLocalService.addEntryResources(folder, entry,
168 communityPermissions, guestPermissions);
169 }
170
171 public static void deleteEntries(long folderId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
175 bookmarksEntryLocalService.deleteEntries(folderId);
176 }
177
178 public static void deleteEntry(long entryId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
182 bookmarksEntryLocalService.deleteEntry(entryId);
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 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
190 bookmarksEntryLocalService.deleteEntry(entry);
191 }
192
193 public static java.util.List getEntries(long folderId, int begin, int end)
194 throws com.liferay.portal.SystemException {
195 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
196
197 return bookmarksEntryLocalService.getEntries(folderId, begin, end);
198 }
199
200 public static java.util.List getEntries(long folderId, int begin, int end,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.SystemException {
203 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
204
205 return bookmarksEntryLocalService.getEntries(folderId, begin, end,
206 orderByComparator);
207 }
208
209 public static int getEntriesCount(long folderId)
210 throws com.liferay.portal.SystemException {
211 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
212
213 return bookmarksEntryLocalService.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 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
221
222 return bookmarksEntryLocalService.getEntry(entryId);
223 }
224
225 public static int getFoldersEntriesCount(java.util.List folderIds)
226 throws com.liferay.portal.SystemException {
227 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
228
229 return bookmarksEntryLocalService.getFoldersEntriesCount(folderIds);
230 }
231
232 public static java.util.List getGroupEntries(long groupId, int begin,
233 int end) throws com.liferay.portal.SystemException {
234 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
235
236 return bookmarksEntryLocalService.getGroupEntries(groupId, begin, end);
237 }
238
239 public static java.util.List getGroupEntries(long groupId, long userId,
240 int begin, int end) throws com.liferay.portal.SystemException {
241 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
242
243 return bookmarksEntryLocalService.getGroupEntries(groupId, userId,
244 begin, end);
245 }
246
247 public static int getGroupEntriesCount(long groupId)
248 throws com.liferay.portal.SystemException {
249 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
250
251 return bookmarksEntryLocalService.getGroupEntriesCount(groupId);
252 }
253
254 public static int getGroupEntriesCount(long groupId, long userId)
255 throws com.liferay.portal.SystemException {
256 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
257
258 return bookmarksEntryLocalService.getGroupEntriesCount(groupId, userId);
259 }
260
261 public static java.util.List getNoAssetEntries()
262 throws com.liferay.portal.SystemException {
263 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
264
265 return bookmarksEntryLocalService.getNoAssetEntries();
266 }
267
268 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
269 long entryId)
270 throws com.liferay.portal.PortalException,
271 com.liferay.portal.SystemException {
272 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
273
274 return bookmarksEntryLocalService.openEntry(entryId);
275 }
276
277 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
278 long userId, long entryId, long folderId, java.lang.String name,
279 java.lang.String url, java.lang.String comments,
280 java.lang.String[] tagsEntries)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException {
283 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
284
285 return bookmarksEntryLocalService.updateEntry(userId, entryId,
286 folderId, name, url, comments, tagsEntries);
287 }
288
289 public static void updateTagsAsset(long userId,
290 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
291 java.lang.String[] tagsEntries)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 BookmarksEntryLocalService bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getService();
295 bookmarksEntryLocalService.updateTagsAsset(userId, entry, tagsEntries);
296 }
297 }