1
22
23 package com.liferay.portlet.bookmarks.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.portal.PortalException;
29 import com.liferay.portal.SystemException;
30 import com.liferay.portal.kernel.annotation.BeanReference;
31 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32 import com.liferay.portal.service.ResourceLocalService;
33 import com.liferay.portal.service.ResourceService;
34 import com.liferay.portal.service.UserLocalService;
35 import com.liferay.portal.service.UserService;
36 import com.liferay.portal.service.persistence.ResourceFinder;
37 import com.liferay.portal.service.persistence.ResourcePersistence;
38 import com.liferay.portal.service.persistence.UserFinder;
39 import com.liferay.portal.service.persistence.UserPersistence;
40 import com.liferay.portal.util.PortalUtil;
41
42 import com.liferay.portlet.bookmarks.model.BookmarksEntry;
43 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
44 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
45 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
46 import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
47 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
48 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
49 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
50 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
51 import com.liferay.portlet.expando.service.ExpandoValueService;
52 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
53 import com.liferay.portlet.tags.service.TagsAssetLocalService;
54 import com.liferay.portlet.tags.service.TagsAssetService;
55 import com.liferay.portlet.tags.service.TagsEntryLocalService;
56 import com.liferay.portlet.tags.service.TagsEntryService;
57 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
58 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
59 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
60 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
61
62 import java.util.List;
63
64
70 public abstract class BookmarksEntryLocalServiceBaseImpl
71 implements BookmarksEntryLocalService {
72 public BookmarksEntry addBookmarksEntry(BookmarksEntry bookmarksEntry)
73 throws SystemException {
74 bookmarksEntry.setNew(true);
75
76 return bookmarksEntryPersistence.update(bookmarksEntry, false);
77 }
78
79 public BookmarksEntry createBookmarksEntry(long entryId) {
80 return bookmarksEntryPersistence.create(entryId);
81 }
82
83 public void deleteBookmarksEntry(long entryId)
84 throws PortalException, SystemException {
85 bookmarksEntryPersistence.remove(entryId);
86 }
87
88 public void deleteBookmarksEntry(BookmarksEntry bookmarksEntry)
89 throws SystemException {
90 bookmarksEntryPersistence.remove(bookmarksEntry);
91 }
92
93 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
94 throws SystemException {
95 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery);
96 }
97
98 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
99 int end) throws SystemException {
100 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
101 start, end);
102 }
103
104 public BookmarksEntry getBookmarksEntry(long entryId)
105 throws PortalException, SystemException {
106 return bookmarksEntryPersistence.findByPrimaryKey(entryId);
107 }
108
109 public List<BookmarksEntry> getBookmarksEntries(int start, int end)
110 throws SystemException {
111 return bookmarksEntryPersistence.findAll(start, end);
112 }
113
114 public int getBookmarksEntriesCount() throws SystemException {
115 return bookmarksEntryPersistence.countAll();
116 }
117
118 public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry)
119 throws SystemException {
120 bookmarksEntry.setNew(false);
121
122 return bookmarksEntryPersistence.update(bookmarksEntry, true);
123 }
124
125 public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry,
126 boolean merge) throws SystemException {
127 bookmarksEntry.setNew(false);
128
129 return bookmarksEntryPersistence.update(bookmarksEntry, merge);
130 }
131
132 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
133 return bookmarksEntryLocalService;
134 }
135
136 public void setBookmarksEntryLocalService(
137 BookmarksEntryLocalService bookmarksEntryLocalService) {
138 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
139 }
140
141 public BookmarksEntryService getBookmarksEntryService() {
142 return bookmarksEntryService;
143 }
144
145 public void setBookmarksEntryService(
146 BookmarksEntryService bookmarksEntryService) {
147 this.bookmarksEntryService = bookmarksEntryService;
148 }
149
150 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
151 return bookmarksEntryPersistence;
152 }
153
154 public void setBookmarksEntryPersistence(
155 BookmarksEntryPersistence bookmarksEntryPersistence) {
156 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
157 }
158
159 public BookmarksEntryFinder getBookmarksEntryFinder() {
160 return bookmarksEntryFinder;
161 }
162
163 public void setBookmarksEntryFinder(
164 BookmarksEntryFinder bookmarksEntryFinder) {
165 this.bookmarksEntryFinder = bookmarksEntryFinder;
166 }
167
168 public BookmarksFolderLocalService getBookmarksFolderLocalService() {
169 return bookmarksFolderLocalService;
170 }
171
172 public void setBookmarksFolderLocalService(
173 BookmarksFolderLocalService bookmarksFolderLocalService) {
174 this.bookmarksFolderLocalService = bookmarksFolderLocalService;
175 }
176
177 public BookmarksFolderService getBookmarksFolderService() {
178 return bookmarksFolderService;
179 }
180
181 public void setBookmarksFolderService(
182 BookmarksFolderService bookmarksFolderService) {
183 this.bookmarksFolderService = bookmarksFolderService;
184 }
185
186 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
187 return bookmarksFolderPersistence;
188 }
189
190 public void setBookmarksFolderPersistence(
191 BookmarksFolderPersistence bookmarksFolderPersistence) {
192 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
193 }
194
195 public CounterLocalService getCounterLocalService() {
196 return counterLocalService;
197 }
198
199 public void setCounterLocalService(CounterLocalService counterLocalService) {
200 this.counterLocalService = counterLocalService;
201 }
202
203 public CounterService getCounterService() {
204 return counterService;
205 }
206
207 public void setCounterService(CounterService counterService) {
208 this.counterService = counterService;
209 }
210
211 public ResourceLocalService getResourceLocalService() {
212 return resourceLocalService;
213 }
214
215 public void setResourceLocalService(
216 ResourceLocalService resourceLocalService) {
217 this.resourceLocalService = resourceLocalService;
218 }
219
220 public ResourceService getResourceService() {
221 return resourceService;
222 }
223
224 public void setResourceService(ResourceService resourceService) {
225 this.resourceService = resourceService;
226 }
227
228 public ResourcePersistence getResourcePersistence() {
229 return resourcePersistence;
230 }
231
232 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
233 this.resourcePersistence = resourcePersistence;
234 }
235
236 public ResourceFinder getResourceFinder() {
237 return resourceFinder;
238 }
239
240 public void setResourceFinder(ResourceFinder resourceFinder) {
241 this.resourceFinder = resourceFinder;
242 }
243
244 public UserLocalService getUserLocalService() {
245 return userLocalService;
246 }
247
248 public void setUserLocalService(UserLocalService userLocalService) {
249 this.userLocalService = userLocalService;
250 }
251
252 public UserService getUserService() {
253 return userService;
254 }
255
256 public void setUserService(UserService userService) {
257 this.userService = userService;
258 }
259
260 public UserPersistence getUserPersistence() {
261 return userPersistence;
262 }
263
264 public void setUserPersistence(UserPersistence userPersistence) {
265 this.userPersistence = userPersistence;
266 }
267
268 public UserFinder getUserFinder() {
269 return userFinder;
270 }
271
272 public void setUserFinder(UserFinder userFinder) {
273 this.userFinder = userFinder;
274 }
275
276 public ExpandoValueLocalService getExpandoValueLocalService() {
277 return expandoValueLocalService;
278 }
279
280 public void setExpandoValueLocalService(
281 ExpandoValueLocalService expandoValueLocalService) {
282 this.expandoValueLocalService = expandoValueLocalService;
283 }
284
285 public ExpandoValueService getExpandoValueService() {
286 return expandoValueService;
287 }
288
289 public void setExpandoValueService(ExpandoValueService expandoValueService) {
290 this.expandoValueService = expandoValueService;
291 }
292
293 public ExpandoValuePersistence getExpandoValuePersistence() {
294 return expandoValuePersistence;
295 }
296
297 public void setExpandoValuePersistence(
298 ExpandoValuePersistence expandoValuePersistence) {
299 this.expandoValuePersistence = expandoValuePersistence;
300 }
301
302 public TagsAssetLocalService getTagsAssetLocalService() {
303 return tagsAssetLocalService;
304 }
305
306 public void setTagsAssetLocalService(
307 TagsAssetLocalService tagsAssetLocalService) {
308 this.tagsAssetLocalService = tagsAssetLocalService;
309 }
310
311 public TagsAssetService getTagsAssetService() {
312 return tagsAssetService;
313 }
314
315 public void setTagsAssetService(TagsAssetService tagsAssetService) {
316 this.tagsAssetService = tagsAssetService;
317 }
318
319 public TagsAssetPersistence getTagsAssetPersistence() {
320 return tagsAssetPersistence;
321 }
322
323 public void setTagsAssetPersistence(
324 TagsAssetPersistence tagsAssetPersistence) {
325 this.tagsAssetPersistence = tagsAssetPersistence;
326 }
327
328 public TagsAssetFinder getTagsAssetFinder() {
329 return tagsAssetFinder;
330 }
331
332 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
333 this.tagsAssetFinder = tagsAssetFinder;
334 }
335
336 public TagsEntryLocalService getTagsEntryLocalService() {
337 return tagsEntryLocalService;
338 }
339
340 public void setTagsEntryLocalService(
341 TagsEntryLocalService tagsEntryLocalService) {
342 this.tagsEntryLocalService = tagsEntryLocalService;
343 }
344
345 public TagsEntryService getTagsEntryService() {
346 return tagsEntryService;
347 }
348
349 public void setTagsEntryService(TagsEntryService tagsEntryService) {
350 this.tagsEntryService = tagsEntryService;
351 }
352
353 public TagsEntryPersistence getTagsEntryPersistence() {
354 return tagsEntryPersistence;
355 }
356
357 public void setTagsEntryPersistence(
358 TagsEntryPersistence tagsEntryPersistence) {
359 this.tagsEntryPersistence = tagsEntryPersistence;
360 }
361
362 public TagsEntryFinder getTagsEntryFinder() {
363 return tagsEntryFinder;
364 }
365
366 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
367 this.tagsEntryFinder = tagsEntryFinder;
368 }
369
370 protected void runSQL(String sql) throws SystemException {
371 try {
372 PortalUtil.runSQL(sql);
373 }
374 catch (Exception e) {
375 throw new SystemException(e);
376 }
377 }
378
379 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.impl")
380 protected BookmarksEntryLocalService bookmarksEntryLocalService;
381 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryService.impl")
382 protected BookmarksEntryService bookmarksEntryService;
383 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence.impl")
384 protected BookmarksEntryPersistence bookmarksEntryPersistence;
385 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder.impl")
386 protected BookmarksEntryFinder bookmarksEntryFinder;
387 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.impl")
388 protected BookmarksFolderLocalService bookmarksFolderLocalService;
389 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderService.impl")
390 protected BookmarksFolderService bookmarksFolderService;
391 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence.impl")
392 protected BookmarksFolderPersistence bookmarksFolderPersistence;
393 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
394 protected CounterLocalService counterLocalService;
395 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
396 protected CounterService counterService;
397 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
398 protected ResourceLocalService resourceLocalService;
399 @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
400 protected ResourceService resourceService;
401 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
402 protected ResourcePersistence resourcePersistence;
403 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
404 protected ResourceFinder resourceFinder;
405 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
406 protected UserLocalService userLocalService;
407 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
408 protected UserService userService;
409 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
410 protected UserPersistence userPersistence;
411 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
412 protected UserFinder userFinder;
413 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService.impl")
414 protected ExpandoValueLocalService expandoValueLocalService;
415 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService.impl")
416 protected ExpandoValueService expandoValueService;
417 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence.impl")
418 protected ExpandoValuePersistence expandoValuePersistence;
419 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
420 protected TagsAssetLocalService tagsAssetLocalService;
421 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
422 protected TagsAssetService tagsAssetService;
423 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
424 protected TagsAssetPersistence tagsAssetPersistence;
425 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
426 protected TagsAssetFinder tagsAssetFinder;
427 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
428 protected TagsEntryLocalService tagsEntryLocalService;
429 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
430 protected TagsEntryService tagsEntryService;
431 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
432 protected TagsEntryPersistence tagsEntryPersistence;
433 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
434 protected TagsEntryFinder tagsEntryFinder;
435 }