1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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.kernel.bean.InitializingBean;
31  import com.liferay.portal.service.ResourceLocalService;
32  import com.liferay.portal.service.ResourceLocalServiceFactory;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.ResourceServiceFactory;
35  import com.liferay.portal.service.UserLocalService;
36  import com.liferay.portal.service.UserLocalServiceFactory;
37  import com.liferay.portal.service.UserService;
38  import com.liferay.portal.service.UserServiceFactory;
39  import com.liferay.portal.service.base.PrincipalBean;
40  import com.liferay.portal.service.persistence.ResourceFinder;
41  import com.liferay.portal.service.persistence.ResourceFinderUtil;
42  import com.liferay.portal.service.persistence.ResourcePersistence;
43  import com.liferay.portal.service.persistence.ResourceUtil;
44  import com.liferay.portal.service.persistence.UserFinder;
45  import com.liferay.portal.service.persistence.UserFinderUtil;
46  import com.liferay.portal.service.persistence.UserPersistence;
47  import com.liferay.portal.service.persistence.UserUtil;
48  
49  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
50  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceFactory;
51  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
52  import com.liferay.portlet.bookmarks.service.BookmarksEntryServiceFactory;
53  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
54  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceFactory;
55  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
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  /**
72   * <a href="BookmarksFolderServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
73   *
74   * @author Brian Wing Shun Chan
75   *
76   */
77  public abstract class BookmarksFolderServiceBaseImpl extends PrincipalBean
78      implements BookmarksFolderService, InitializingBean {
79      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
80          return bookmarksEntryLocalService;
81      }
82  
83      public void setBookmarksEntryLocalService(
84          BookmarksEntryLocalService bookmarksEntryLocalService) {
85          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
86      }
87  
88      public BookmarksEntryService getBookmarksEntryService() {
89          return bookmarksEntryService;
90      }
91  
92      public void setBookmarksEntryService(
93          BookmarksEntryService bookmarksEntryService) {
94          this.bookmarksEntryService = bookmarksEntryService;
95      }
96  
97      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
98          return bookmarksEntryPersistence;
99      }
100 
101     public void setBookmarksEntryPersistence(
102         BookmarksEntryPersistence bookmarksEntryPersistence) {
103         this.bookmarksEntryPersistence = bookmarksEntryPersistence;
104     }
105 
106     public BookmarksEntryFinder getBookmarksEntryFinder() {
107         return bookmarksEntryFinder;
108     }
109 
110     public void setBookmarksEntryFinder(
111         BookmarksEntryFinder bookmarksEntryFinder) {
112         this.bookmarksEntryFinder = bookmarksEntryFinder;
113     }
114 
115     public BookmarksFolderLocalService getBookmarksFolderLocalService() {
116         return bookmarksFolderLocalService;
117     }
118 
119     public void setBookmarksFolderLocalService(
120         BookmarksFolderLocalService bookmarksFolderLocalService) {
121         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
122     }
123 
124     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
125         return bookmarksFolderPersistence;
126     }
127 
128     public void setBookmarksFolderPersistence(
129         BookmarksFolderPersistence bookmarksFolderPersistence) {
130         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
131     }
132 
133     public CounterLocalService getCounterLocalService() {
134         return counterLocalService;
135     }
136 
137     public void setCounterLocalService(CounterLocalService counterLocalService) {
138         this.counterLocalService = counterLocalService;
139     }
140 
141     public CounterService getCounterService() {
142         return counterService;
143     }
144 
145     public void setCounterService(CounterService counterService) {
146         this.counterService = counterService;
147     }
148 
149     public ResourceLocalService getResourceLocalService() {
150         return resourceLocalService;
151     }
152 
153     public void setResourceLocalService(
154         ResourceLocalService resourceLocalService) {
155         this.resourceLocalService = resourceLocalService;
156     }
157 
158     public ResourceService getResourceService() {
159         return resourceService;
160     }
161 
162     public void setResourceService(ResourceService resourceService) {
163         this.resourceService = resourceService;
164     }
165 
166     public ResourcePersistence getResourcePersistence() {
167         return resourcePersistence;
168     }
169 
170     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
171         this.resourcePersistence = resourcePersistence;
172     }
173 
174     public ResourceFinder getResourceFinder() {
175         return resourceFinder;
176     }
177 
178     public void setResourceFinder(ResourceFinder resourceFinder) {
179         this.resourceFinder = resourceFinder;
180     }
181 
182     public UserLocalService getUserLocalService() {
183         return userLocalService;
184     }
185 
186     public void setUserLocalService(UserLocalService userLocalService) {
187         this.userLocalService = userLocalService;
188     }
189 
190     public UserService getUserService() {
191         return userService;
192     }
193 
194     public void setUserService(UserService userService) {
195         this.userService = userService;
196     }
197 
198     public UserPersistence getUserPersistence() {
199         return userPersistence;
200     }
201 
202     public void setUserPersistence(UserPersistence userPersistence) {
203         this.userPersistence = userPersistence;
204     }
205 
206     public UserFinder getUserFinder() {
207         return userFinder;
208     }
209 
210     public void setUserFinder(UserFinder userFinder) {
211         this.userFinder = userFinder;
212     }
213 
214     public TagsEntryLocalService getTagsEntryLocalService() {
215         return tagsEntryLocalService;
216     }
217 
218     public void setTagsEntryLocalService(
219         TagsEntryLocalService tagsEntryLocalService) {
220         this.tagsEntryLocalService = tagsEntryLocalService;
221     }
222 
223     public TagsEntryService getTagsEntryService() {
224         return tagsEntryService;
225     }
226 
227     public void setTagsEntryService(TagsEntryService tagsEntryService) {
228         this.tagsEntryService = tagsEntryService;
229     }
230 
231     public TagsEntryPersistence getTagsEntryPersistence() {
232         return tagsEntryPersistence;
233     }
234 
235     public void setTagsEntryPersistence(
236         TagsEntryPersistence tagsEntryPersistence) {
237         this.tagsEntryPersistence = tagsEntryPersistence;
238     }
239 
240     public TagsEntryFinder getTagsEntryFinder() {
241         return tagsEntryFinder;
242     }
243 
244     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
245         this.tagsEntryFinder = tagsEntryFinder;
246     }
247 
248     public void afterPropertiesSet() {
249         if (bookmarksEntryLocalService == null) {
250             bookmarksEntryLocalService = BookmarksEntryLocalServiceFactory.getImpl();
251         }
252 
253         if (bookmarksEntryService == null) {
254             bookmarksEntryService = BookmarksEntryServiceFactory.getImpl();
255         }
256 
257         if (bookmarksEntryPersistence == null) {
258             bookmarksEntryPersistence = BookmarksEntryUtil.getPersistence();
259         }
260 
261         if (bookmarksEntryFinder == null) {
262             bookmarksEntryFinder = BookmarksEntryFinderUtil.getFinder();
263         }
264 
265         if (bookmarksFolderLocalService == null) {
266             bookmarksFolderLocalService = BookmarksFolderLocalServiceFactory.getImpl();
267         }
268 
269         if (bookmarksFolderPersistence == null) {
270             bookmarksFolderPersistence = BookmarksFolderUtil.getPersistence();
271         }
272 
273         if (counterLocalService == null) {
274             counterLocalService = CounterLocalServiceFactory.getImpl();
275         }
276 
277         if (counterService == null) {
278             counterService = CounterServiceFactory.getImpl();
279         }
280 
281         if (resourceLocalService == null) {
282             resourceLocalService = ResourceLocalServiceFactory.getImpl();
283         }
284 
285         if (resourceService == null) {
286             resourceService = ResourceServiceFactory.getImpl();
287         }
288 
289         if (resourcePersistence == null) {
290             resourcePersistence = ResourceUtil.getPersistence();
291         }
292 
293         if (resourceFinder == null) {
294             resourceFinder = ResourceFinderUtil.getFinder();
295         }
296 
297         if (userLocalService == null) {
298             userLocalService = UserLocalServiceFactory.getImpl();
299         }
300 
301         if (userService == null) {
302             userService = UserServiceFactory.getImpl();
303         }
304 
305         if (userPersistence == null) {
306             userPersistence = UserUtil.getPersistence();
307         }
308 
309         if (userFinder == null) {
310             userFinder = UserFinderUtil.getFinder();
311         }
312 
313         if (tagsEntryLocalService == null) {
314             tagsEntryLocalService = TagsEntryLocalServiceFactory.getImpl();
315         }
316 
317         if (tagsEntryService == null) {
318             tagsEntryService = TagsEntryServiceFactory.getImpl();
319         }
320 
321         if (tagsEntryPersistence == null) {
322             tagsEntryPersistence = TagsEntryUtil.getPersistence();
323         }
324 
325         if (tagsEntryFinder == null) {
326             tagsEntryFinder = TagsEntryFinderUtil.getFinder();
327         }
328     }
329 
330     protected BookmarksEntryLocalService bookmarksEntryLocalService;
331     protected BookmarksEntryService bookmarksEntryService;
332     protected BookmarksEntryPersistence bookmarksEntryPersistence;
333     protected BookmarksEntryFinder bookmarksEntryFinder;
334     protected BookmarksFolderLocalService bookmarksFolderLocalService;
335     protected BookmarksFolderPersistence bookmarksFolderPersistence;
336     protected CounterLocalService counterLocalService;
337     protected CounterService counterService;
338     protected ResourceLocalService resourceLocalService;
339     protected ResourceService resourceService;
340     protected ResourcePersistence resourcePersistence;
341     protected ResourceFinder resourceFinder;
342     protected UserLocalService userLocalService;
343     protected UserService userService;
344     protected UserPersistence userPersistence;
345     protected UserFinder userFinder;
346     protected TagsEntryLocalService tagsEntryLocalService;
347     protected TagsEntryService tagsEntryService;
348     protected TagsEntryPersistence tagsEntryPersistence;
349     protected TagsEntryFinder tagsEntryFinder;
350 }