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