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
38 import com.liferay.portlet.bookmarks.model.BookmarksEntry;
39 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
40 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
41 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
42 import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
43 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
44 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
45 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
46 import com.liferay.portlet.tags.service.TagsAssetLocalService;
47 import com.liferay.portlet.tags.service.TagsAssetService;
48 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
49 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
50
51 import java.util.List;
52
53
59 public abstract class BookmarksEntryLocalServiceBaseImpl
60 implements BookmarksEntryLocalService {
61 public BookmarksEntry addBookmarksEntry(BookmarksEntry bookmarksEntry)
62 throws SystemException {
63 bookmarksEntry.setNew(true);
64
65 return bookmarksEntryPersistence.update(bookmarksEntry, false);
66 }
67
68 public BookmarksEntry createBookmarksEntry(long entryId) {
69 return bookmarksEntryPersistence.create(entryId);
70 }
71
72 public void deleteBookmarksEntry(long entryId)
73 throws PortalException, SystemException {
74 bookmarksEntryPersistence.remove(entryId);
75 }
76
77 public void deleteBookmarksEntry(BookmarksEntry bookmarksEntry)
78 throws SystemException {
79 bookmarksEntryPersistence.remove(bookmarksEntry);
80 }
81
82 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
83 throws SystemException {
84 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery);
85 }
86
87 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
88 int end) throws SystemException {
89 return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
90 start, end);
91 }
92
93 public BookmarksEntry getBookmarksEntry(long entryId)
94 throws PortalException, SystemException {
95 return bookmarksEntryPersistence.findByPrimaryKey(entryId);
96 }
97
98 public List<BookmarksEntry> getBookmarksEntries(int start, int end)
99 throws SystemException {
100 return bookmarksEntryPersistence.findAll(start, end);
101 }
102
103 public int getBookmarksEntriesCount() throws SystemException {
104 return bookmarksEntryPersistence.countAll();
105 }
106
107 public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry)
108 throws SystemException {
109 bookmarksEntry.setNew(false);
110
111 return bookmarksEntryPersistence.update(bookmarksEntry, true);
112 }
113
114 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
115 return bookmarksEntryLocalService;
116 }
117
118 public void setBookmarksEntryLocalService(
119 BookmarksEntryLocalService bookmarksEntryLocalService) {
120 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
121 }
122
123 public BookmarksEntryService getBookmarksEntryService() {
124 return bookmarksEntryService;
125 }
126
127 public void setBookmarksEntryService(
128 BookmarksEntryService bookmarksEntryService) {
129 this.bookmarksEntryService = bookmarksEntryService;
130 }
131
132 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
133 return bookmarksEntryPersistence;
134 }
135
136 public void setBookmarksEntryPersistence(
137 BookmarksEntryPersistence bookmarksEntryPersistence) {
138 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
139 }
140
141 public BookmarksEntryFinder getBookmarksEntryFinder() {
142 return bookmarksEntryFinder;
143 }
144
145 public void setBookmarksEntryFinder(
146 BookmarksEntryFinder bookmarksEntryFinder) {
147 this.bookmarksEntryFinder = bookmarksEntryFinder;
148 }
149
150 public BookmarksFolderLocalService getBookmarksFolderLocalService() {
151 return bookmarksFolderLocalService;
152 }
153
154 public void setBookmarksFolderLocalService(
155 BookmarksFolderLocalService bookmarksFolderLocalService) {
156 this.bookmarksFolderLocalService = bookmarksFolderLocalService;
157 }
158
159 public BookmarksFolderService getBookmarksFolderService() {
160 return bookmarksFolderService;
161 }
162
163 public void setBookmarksFolderService(
164 BookmarksFolderService bookmarksFolderService) {
165 this.bookmarksFolderService = bookmarksFolderService;
166 }
167
168 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
169 return bookmarksFolderPersistence;
170 }
171
172 public void setBookmarksFolderPersistence(
173 BookmarksFolderPersistence bookmarksFolderPersistence) {
174 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
175 }
176
177 public CounterLocalService getCounterLocalService() {
178 return counterLocalService;
179 }
180
181 public void setCounterLocalService(CounterLocalService counterLocalService) {
182 this.counterLocalService = counterLocalService;
183 }
184
185 public CounterService getCounterService() {
186 return counterService;
187 }
188
189 public void setCounterService(CounterService counterService) {
190 this.counterService = counterService;
191 }
192
193 public ResourceLocalService getResourceLocalService() {
194 return resourceLocalService;
195 }
196
197 public void setResourceLocalService(
198 ResourceLocalService resourceLocalService) {
199 this.resourceLocalService = resourceLocalService;
200 }
201
202 public ResourceService getResourceService() {
203 return resourceService;
204 }
205
206 public void setResourceService(ResourceService resourceService) {
207 this.resourceService = resourceService;
208 }
209
210 public ResourcePersistence getResourcePersistence() {
211 return resourcePersistence;
212 }
213
214 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
215 this.resourcePersistence = resourcePersistence;
216 }
217
218 public ResourceFinder getResourceFinder() {
219 return resourceFinder;
220 }
221
222 public void setResourceFinder(ResourceFinder resourceFinder) {
223 this.resourceFinder = resourceFinder;
224 }
225
226 public UserLocalService getUserLocalService() {
227 return userLocalService;
228 }
229
230 public void setUserLocalService(UserLocalService userLocalService) {
231 this.userLocalService = userLocalService;
232 }
233
234 public UserService getUserService() {
235 return userService;
236 }
237
238 public void setUserService(UserService userService) {
239 this.userService = userService;
240 }
241
242 public UserPersistence getUserPersistence() {
243 return userPersistence;
244 }
245
246 public void setUserPersistence(UserPersistence userPersistence) {
247 this.userPersistence = userPersistence;
248 }
249
250 public UserFinder getUserFinder() {
251 return userFinder;
252 }
253
254 public void setUserFinder(UserFinder userFinder) {
255 this.userFinder = userFinder;
256 }
257
258 public TagsAssetLocalService getTagsAssetLocalService() {
259 return tagsAssetLocalService;
260 }
261
262 public void setTagsAssetLocalService(
263 TagsAssetLocalService tagsAssetLocalService) {
264 this.tagsAssetLocalService = tagsAssetLocalService;
265 }
266
267 public TagsAssetService getTagsAssetService() {
268 return tagsAssetService;
269 }
270
271 public void setTagsAssetService(TagsAssetService tagsAssetService) {
272 this.tagsAssetService = tagsAssetService;
273 }
274
275 public TagsAssetPersistence getTagsAssetPersistence() {
276 return tagsAssetPersistence;
277 }
278
279 public void setTagsAssetPersistence(
280 TagsAssetPersistence tagsAssetPersistence) {
281 this.tagsAssetPersistence = tagsAssetPersistence;
282 }
283
284 public TagsAssetFinder getTagsAssetFinder() {
285 return tagsAssetFinder;
286 }
287
288 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
289 this.tagsAssetFinder = tagsAssetFinder;
290 }
291
292 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.impl")
293 protected BookmarksEntryLocalService bookmarksEntryLocalService;
294 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksEntryService.impl")
295 protected BookmarksEntryService bookmarksEntryService;
296 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence.impl")
297 protected BookmarksEntryPersistence bookmarksEntryPersistence;
298 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder.impl")
299 protected BookmarksEntryFinder bookmarksEntryFinder;
300 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.impl")
301 protected BookmarksFolderLocalService bookmarksFolderLocalService;
302 @BeanReference(name = "com.liferay.portlet.bookmarks.service.BookmarksFolderService.impl")
303 protected BookmarksFolderService bookmarksFolderService;
304 @BeanReference(name = "com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence.impl")
305 protected BookmarksFolderPersistence bookmarksFolderPersistence;
306 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
307 protected CounterLocalService counterLocalService;
308 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
309 protected CounterService counterService;
310 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
311 protected ResourceLocalService resourceLocalService;
312 @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
313 protected ResourceService resourceService;
314 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
315 protected ResourcePersistence resourcePersistence;
316 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
317 protected ResourceFinder resourceFinder;
318 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
319 protected UserLocalService userLocalService;
320 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
321 protected UserService userService;
322 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
323 protected UserPersistence userPersistence;
324 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
325 protected UserFinder userFinder;
326 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
327 protected TagsAssetLocalService tagsAssetLocalService;
328 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
329 protected TagsAssetService tagsAssetService;
330 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
331 protected TagsAssetPersistence tagsAssetPersistence;
332 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
333 protected TagsAssetFinder tagsAssetFinder;
334 }