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