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