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