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