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