1
22
23 package com.liferay.portlet.bookmarks.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterLocalServiceFactory;
27 import com.liferay.counter.service.CounterService;
28 import com.liferay.counter.service.CounterServiceFactory;
29
30 import com.liferay.portal.PortalException;
31 import com.liferay.portal.SystemException;
32 import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
33 import com.liferay.portal.service.ResourceLocalService;
34 import com.liferay.portal.service.ResourceLocalServiceFactory;
35 import com.liferay.portal.service.ResourceService;
36 import com.liferay.portal.service.ResourceServiceFactory;
37 import com.liferay.portal.service.UserLocalService;
38 import com.liferay.portal.service.UserLocalServiceFactory;
39 import com.liferay.portal.service.UserService;
40 import com.liferay.portal.service.UserServiceFactory;
41 import com.liferay.portal.service.persistence.ResourceFinder;
42 import com.liferay.portal.service.persistence.ResourceFinderUtil;
43 import com.liferay.portal.service.persistence.ResourcePersistence;
44 import com.liferay.portal.service.persistence.ResourceUtil;
45 import com.liferay.portal.service.persistence.UserFinder;
46 import com.liferay.portal.service.persistence.UserFinderUtil;
47 import com.liferay.portal.service.persistence.UserPersistence;
48 import com.liferay.portal.service.persistence.UserUtil;
49
50 import com.liferay.portlet.bookmarks.model.BookmarksFolder;
51 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
52 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory;
53 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
54 import com.liferay.portlet.bookmarks.service.BookmarksEntryServiceFactory;
55 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
56 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
57 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinderUtil;
58 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
59 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryUtil;
60 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
61 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderUtil;
62 import com.liferay.portlet.tags.service.TagsEntryLocalService;
63 import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
64 import com.liferay.portlet.tags.service.TagsEntryService;
65 import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
66 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
67 import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
68 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
69 import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
70
71 import org.springframework.beans.factory.InitializingBean;
72
73 import java.util.List;
74
75
81 public abstract class BookmarksFolderLocalServiceBaseImpl
82 implements BookmarksFolderLocalService, InitializingBean {
83 public BookmarksFolder addBookmarksFolder(BookmarksFolder bookmarksFolder)
84 throws SystemException {
85 bookmarksFolder.setNew(true);
86
87 return bookmarksFolderPersistence.update(bookmarksFolder, false);
88 }
89
90 public void deleteBookmarksFolder(long folderId)
91 throws PortalException, SystemException {
92 bookmarksFolderPersistence.remove(folderId);
93 }
94
95 public void deleteBookmarksFolder(BookmarksFolder bookmarksFolder)
96 throws PortalException, SystemException {
97 bookmarksFolderPersistence.remove(bookmarksFolder);
98 }
99
100 public List<BookmarksFolder> dynamicQuery(
101 DynamicQueryInitializer queryInitializer) throws SystemException {
102 return bookmarksFolderPersistence.findWithDynamicQuery(queryInitializer);
103 }
104
105 public List<BookmarksFolder> dynamicQuery(
106 DynamicQueryInitializer queryInitializer, int begin, int end)
107 throws SystemException {
108 return bookmarksFolderPersistence.findWithDynamicQuery(queryInitializer,
109 begin, end);
110 }
111
112 public BookmarksFolder updateBookmarksFolder(
113 BookmarksFolder bookmarksFolder) throws SystemException {
114 bookmarksFolder.setNew(false);
115
116 return bookmarksFolderPersistence.update(bookmarksFolder, true);
117 }
118
119 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
120 return bookmarksEntryLocalService;
121 }
122
123 public void setBookmarksEntryLocalService(
124 BookmarksEntryLocalService bookmarksEntryLocalService) {
125 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
126 }
127
128 public BookmarksEntryService getBookmarksEntryService() {
129 return bookmarksEntryService;
130 }
131
132 public void setBookmarksEntryService(
133 BookmarksEntryService bookmarksEntryService) {
134 this.bookmarksEntryService = bookmarksEntryService;
135 }
136
137 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
138 return bookmarksEntryPersistence;
139 }
140
141 public void setBookmarksEntryPersistence(
142 BookmarksEntryPersistence bookmarksEntryPersistence) {
143 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
144 }
145
146 public BookmarksEntryFinder getBookmarksEntryFinder() {
147 return bookmarksEntryFinder;
148 }
149
150 public void setBookmarksEntryFinder(
151 BookmarksEntryFinder bookmarksEntryFinder) {
152 this.bookmarksEntryFinder = bookmarksEntryFinder;
153 }
154
155 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
156 return bookmarksFolderPersistence;
157 }
158
159 public void setBookmarksFolderPersistence(
160 BookmarksFolderPersistence bookmarksFolderPersistence) {
161 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
162 }
163
164 public CounterLocalService getCounterLocalService() {
165 return counterLocalService;
166 }
167
168 public void setCounterLocalService(CounterLocalService counterLocalService) {
169 this.counterLocalService = counterLocalService;
170 }
171
172 public CounterService getCounterService() {
173 return counterService;
174 }
175
176 public void setCounterService(CounterService counterService) {
177 this.counterService = counterService;
178 }
179
180 public ResourceLocalService getResourceLocalService() {
181 return resourceLocalService;
182 }
183
184 public void setResourceLocalService(
185 ResourceLocalService resourceLocalService) {
186 this.resourceLocalService = resourceLocalService;
187 }
188
189 public ResourceService getResourceService() {
190 return resourceService;
191 }
192
193 public void setResourceService(ResourceService resourceService) {
194 this.resourceService = resourceService;
195 }
196
197 public ResourcePersistence getResourcePersistence() {
198 return resourcePersistence;
199 }
200
201 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
202 this.resourcePersistence = resourcePersistence;
203 }
204
205 public ResourceFinder getResourceFinder() {
206 return resourceFinder;
207 }
208
209 public void setResourceFinder(ResourceFinder resourceFinder) {
210 this.resourceFinder = resourceFinder;
211 }
212
213 public UserLocalService getUserLocalService() {
214 return userLocalService;
215 }
216
217 public void setUserLocalService(UserLocalService userLocalService) {
218 this.userLocalService = userLocalService;
219 }
220
221 public UserService getUserService() {
222 return userService;
223 }
224
225 public void setUserService(UserService userService) {
226 this.userService = userService;
227 }
228
229 public UserPersistence getUserPersistence() {
230 return userPersistence;
231 }
232
233 public void setUserPersistence(UserPersistence userPersistence) {
234 this.userPersistence = userPersistence;
235 }
236
237 public UserFinder getUserFinder() {
238 return userFinder;
239 }
240
241 public void setUserFinder(UserFinder userFinder) {
242 this.userFinder = userFinder;
243 }
244
245 public TagsEntryLocalService getTagsEntryLocalService() {
246 return tagsEntryLocalService;
247 }
248
249 public void setTagsEntryLocalService(
250 TagsEntryLocalService tagsEntryLocalService) {
251 this.tagsEntryLocalService = tagsEntryLocalService;
252 }
253
254 public TagsEntryService getTagsEntryService() {
255 return tagsEntryService;
256 }
257
258 public void setTagsEntryService(TagsEntryService tagsEntryService) {
259 this.tagsEntryService = tagsEntryService;
260 }
261
262 public TagsEntryPersistence getTagsEntryPersistence() {
263 return tagsEntryPersistence;
264 }
265
266 public void setTagsEntryPersistence(
267 TagsEntryPersistence tagsEntryPersistence) {
268 this.tagsEntryPersistence = tagsEntryPersistence;
269 }
270
271 public TagsEntryFinder getTagsEntryFinder() {
272 return tagsEntryFinder;
273 }
274
275 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
276 this.tagsEntryFinder = tagsEntryFinder;
277 }
278
279 public void afterPropertiesSet() {
280 if (bookmarksEntryLocalService == null) {
281 bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getImpl();
282 }
283
284 if (bookmarksEntryService == null) {
285 bookmarksEntryService = BookmarksEntryServiceFactory.getImpl();
286 }
287
288 if (bookmarksEntryPersistence == null) {
289 bookmarksEntryPersistence = BookmarksEntryUtil.getPersistence();
290 }
291
292 if (bookmarksEntryFinder == null) {
293 bookmarksEntryFinder = BookmarksEntryFinderUtil.getFinder();
294 }
295
296 if (bookmarksFolderPersistence == null) {
297 bookmarksFolderPersistence = BookmarksFolderUtil.getPersistence();
298 }
299
300 if (counterLocalService == null) {
301 counterLocalService = CounterLocalServiceFactory.getImpl();
302 }
303
304 if (counterService == null) {
305 counterService = CounterServiceFactory.getImpl();
306 }
307
308 if (resourceLocalService == null) {
309 resourceLocalService = ResourceLocalServiceFactory.getImpl();
310 }
311
312 if (resourceService == null) {
313 resourceService = ResourceServiceFactory.getImpl();
314 }
315
316 if (resourcePersistence == null) {
317 resourcePersistence = ResourceUtil.getPersistence();
318 }
319
320 if (resourceFinder == null) {
321 resourceFinder = ResourceFinderUtil.getFinder();
322 }
323
324 if (userLocalService == null) {
325 userLocalService = UserLocalServiceFactory.getImpl();
326 }
327
328 if (userService == null) {
329 userService = UserServiceFactory.getImpl();
330 }
331
332 if (userPersistence == null) {
333 userPersistence = UserUtil.getPersistence();
334 }
335
336 if (userFinder == null) {
337 userFinder = UserFinderUtil.getFinder();
338 }
339
340 if (tagsEntryLocalService == null) {
341 tagsEntryLocalService = TagsEntryLocalServiceFactory.getImpl();
342 }
343
344 if (tagsEntryService == null) {
345 tagsEntryService = TagsEntryServiceFactory.getImpl();
346 }
347
348 if (tagsEntryPersistence == null) {
349 tagsEntryPersistence = TagsEntryUtil.getPersistence();
350 }
351
352 if (tagsEntryFinder == null) {
353 tagsEntryFinder = TagsEntryFinderUtil.getFinder();
354 }
355 }
356
357 protected BookmarksEntryLocalService bookmarksEntryLocalService;
358 protected BookmarksEntryService bookmarksEntryService;
359 protected BookmarksEntryPersistence bookmarksEntryPersistence;
360 protected BookmarksEntryFinder bookmarksEntryFinder;
361 protected BookmarksFolderPersistence bookmarksFolderPersistence;
362 protected CounterLocalService counterLocalService;
363 protected CounterService counterService;
364 protected ResourceLocalService resourceLocalService;
365 protected ResourceService resourceService;
366 protected ResourcePersistence resourcePersistence;
367 protected ResourceFinder resourceFinder;
368 protected UserLocalService userLocalService;
369 protected UserService userService;
370 protected UserPersistence userPersistence;
371 protected UserFinder userFinder;
372 protected TagsEntryLocalService tagsEntryLocalService;
373 protected TagsEntryService tagsEntryService;
374 protected TagsEntryPersistence tagsEntryPersistence;
375 protected TagsEntryFinder tagsEntryFinder;
376 }