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