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.calendar.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.mail.service.MailService;
31  import com.liferay.mail.service.MailServiceFactory;
32  
33  import com.liferay.portal.kernel.bean.InitializingBean;
34  import com.liferay.portal.service.CompanyLocalService;
35  import com.liferay.portal.service.CompanyLocalServiceFactory;
36  import com.liferay.portal.service.CompanyService;
37  import com.liferay.portal.service.CompanyServiceFactory;
38  import com.liferay.portal.service.PortletPreferencesLocalService;
39  import com.liferay.portal.service.PortletPreferencesLocalServiceFactory;
40  import com.liferay.portal.service.PortletPreferencesService;
41  import com.liferay.portal.service.PortletPreferencesServiceFactory;
42  import com.liferay.portal.service.ResourceLocalService;
43  import com.liferay.portal.service.ResourceLocalServiceFactory;
44  import com.liferay.portal.service.ResourceService;
45  import com.liferay.portal.service.ResourceServiceFactory;
46  import com.liferay.portal.service.UserLocalService;
47  import com.liferay.portal.service.UserLocalServiceFactory;
48  import com.liferay.portal.service.UserService;
49  import com.liferay.portal.service.UserServiceFactory;
50  import com.liferay.portal.service.base.PrincipalBean;
51  import com.liferay.portal.service.persistence.CompanyPersistence;
52  import com.liferay.portal.service.persistence.CompanyUtil;
53  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
54  import com.liferay.portal.service.persistence.PortletPreferencesFinderUtil;
55  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
56  import com.liferay.portal.service.persistence.PortletPreferencesUtil;
57  import com.liferay.portal.service.persistence.ResourceFinder;
58  import com.liferay.portal.service.persistence.ResourceFinderUtil;
59  import com.liferay.portal.service.persistence.ResourcePersistence;
60  import com.liferay.portal.service.persistence.ResourceUtil;
61  import com.liferay.portal.service.persistence.UserFinder;
62  import com.liferay.portal.service.persistence.UserFinderUtil;
63  import com.liferay.portal.service.persistence.UserPersistence;
64  import com.liferay.portal.service.persistence.UserUtil;
65  
66  import com.liferay.portlet.calendar.service.CalEventLocalService;
67  import com.liferay.portlet.calendar.service.CalEventLocalServiceFactory;
68  import com.liferay.portlet.calendar.service.CalEventService;
69  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
70  import com.liferay.portlet.calendar.service.persistence.CalEventFinderUtil;
71  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
72  import com.liferay.portlet.calendar.service.persistence.CalEventUtil;
73  
74  /**
75   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
76   *
77   * @author Brian Wing Shun Chan
78   *
79   */
80  public abstract class CalEventServiceBaseImpl extends PrincipalBean
81      implements CalEventService, InitializingBean {
82      public CalEventLocalService getCalEventLocalService() {
83          return calEventLocalService;
84      }
85  
86      public void setCalEventLocalService(
87          CalEventLocalService calEventLocalService) {
88          this.calEventLocalService = calEventLocalService;
89      }
90  
91      public CalEventPersistence getCalEventPersistence() {
92          return calEventPersistence;
93      }
94  
95      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
96          this.calEventPersistence = calEventPersistence;
97      }
98  
99      public CalEventFinder getCalEventFinder() {
100         return calEventFinder;
101     }
102 
103     public void setCalEventFinder(CalEventFinder calEventFinder) {
104         this.calEventFinder = calEventFinder;
105     }
106 
107     public CounterLocalService getCounterLocalService() {
108         return counterLocalService;
109     }
110 
111     public void setCounterLocalService(CounterLocalService counterLocalService) {
112         this.counterLocalService = counterLocalService;
113     }
114 
115     public CounterService getCounterService() {
116         return counterService;
117     }
118 
119     public void setCounterService(CounterService counterService) {
120         this.counterService = counterService;
121     }
122 
123     public MailService getMailService() {
124         return mailService;
125     }
126 
127     public void setMailService(MailService mailService) {
128         this.mailService = mailService;
129     }
130 
131     public CompanyLocalService getCompanyLocalService() {
132         return companyLocalService;
133     }
134 
135     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
136         this.companyLocalService = companyLocalService;
137     }
138 
139     public CompanyService getCompanyService() {
140         return companyService;
141     }
142 
143     public void setCompanyService(CompanyService companyService) {
144         this.companyService = companyService;
145     }
146 
147     public CompanyPersistence getCompanyPersistence() {
148         return companyPersistence;
149     }
150 
151     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
152         this.companyPersistence = companyPersistence;
153     }
154 
155     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
156         return portletPreferencesLocalService;
157     }
158 
159     public void setPortletPreferencesLocalService(
160         PortletPreferencesLocalService portletPreferencesLocalService) {
161         this.portletPreferencesLocalService = portletPreferencesLocalService;
162     }
163 
164     public PortletPreferencesService getPortletPreferencesService() {
165         return portletPreferencesService;
166     }
167 
168     public void setPortletPreferencesService(
169         PortletPreferencesService portletPreferencesService) {
170         this.portletPreferencesService = portletPreferencesService;
171     }
172 
173     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
174         return portletPreferencesPersistence;
175     }
176 
177     public void setPortletPreferencesPersistence(
178         PortletPreferencesPersistence portletPreferencesPersistence) {
179         this.portletPreferencesPersistence = portletPreferencesPersistence;
180     }
181 
182     public PortletPreferencesFinder getPortletPreferencesFinder() {
183         return portletPreferencesFinder;
184     }
185 
186     public void setPortletPreferencesFinder(
187         PortletPreferencesFinder portletPreferencesFinder) {
188         this.portletPreferencesFinder = portletPreferencesFinder;
189     }
190 
191     public ResourceLocalService getResourceLocalService() {
192         return resourceLocalService;
193     }
194 
195     public void setResourceLocalService(
196         ResourceLocalService resourceLocalService) {
197         this.resourceLocalService = resourceLocalService;
198     }
199 
200     public ResourceService getResourceService() {
201         return resourceService;
202     }
203 
204     public void setResourceService(ResourceService resourceService) {
205         this.resourceService = resourceService;
206     }
207 
208     public ResourcePersistence getResourcePersistence() {
209         return resourcePersistence;
210     }
211 
212     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
213         this.resourcePersistence = resourcePersistence;
214     }
215 
216     public ResourceFinder getResourceFinder() {
217         return resourceFinder;
218     }
219 
220     public void setResourceFinder(ResourceFinder resourceFinder) {
221         this.resourceFinder = resourceFinder;
222     }
223 
224     public UserLocalService getUserLocalService() {
225         return userLocalService;
226     }
227 
228     public void setUserLocalService(UserLocalService userLocalService) {
229         this.userLocalService = userLocalService;
230     }
231 
232     public UserService getUserService() {
233         return userService;
234     }
235 
236     public void setUserService(UserService userService) {
237         this.userService = userService;
238     }
239 
240     public UserPersistence getUserPersistence() {
241         return userPersistence;
242     }
243 
244     public void setUserPersistence(UserPersistence userPersistence) {
245         this.userPersistence = userPersistence;
246     }
247 
248     public UserFinder getUserFinder() {
249         return userFinder;
250     }
251 
252     public void setUserFinder(UserFinder userFinder) {
253         this.userFinder = userFinder;
254     }
255 
256     public void afterPropertiesSet() {
257         if (calEventLocalService == null) {
258             calEventLocalService = CalEventLocalServiceFactory.getImpl();
259         }
260 
261         if (calEventPersistence == null) {
262             calEventPersistence = CalEventUtil.getPersistence();
263         }
264 
265         if (calEventFinder == null) {
266             calEventFinder = CalEventFinderUtil.getFinder();
267         }
268 
269         if (counterLocalService == null) {
270             counterLocalService = CounterLocalServiceFactory.getImpl();
271         }
272 
273         if (counterService == null) {
274             counterService = CounterServiceFactory.getImpl();
275         }
276 
277         if (mailService == null) {
278             mailService = MailServiceFactory.getImpl();
279         }
280 
281         if (companyLocalService == null) {
282             companyLocalService = CompanyLocalServiceFactory.getImpl();
283         }
284 
285         if (companyService == null) {
286             companyService = CompanyServiceFactory.getImpl();
287         }
288 
289         if (companyPersistence == null) {
290             companyPersistence = CompanyUtil.getPersistence();
291         }
292 
293         if (portletPreferencesLocalService == null) {
294             portletPreferencesLocalService = PortletPreferencesLocalServiceFactory.getImpl();
295         }
296 
297         if (portletPreferencesService == null) {
298             portletPreferencesService = PortletPreferencesServiceFactory.getImpl();
299         }
300 
301         if (portletPreferencesPersistence == null) {
302             portletPreferencesPersistence = PortletPreferencesUtil.getPersistence();
303         }
304 
305         if (portletPreferencesFinder == null) {
306             portletPreferencesFinder = PortletPreferencesFinderUtil.getFinder();
307         }
308 
309         if (resourceLocalService == null) {
310             resourceLocalService = ResourceLocalServiceFactory.getImpl();
311         }
312 
313         if (resourceService == null) {
314             resourceService = ResourceServiceFactory.getImpl();
315         }
316 
317         if (resourcePersistence == null) {
318             resourcePersistence = ResourceUtil.getPersistence();
319         }
320 
321         if (resourceFinder == null) {
322             resourceFinder = ResourceFinderUtil.getFinder();
323         }
324 
325         if (userLocalService == null) {
326             userLocalService = UserLocalServiceFactory.getImpl();
327         }
328 
329         if (userService == null) {
330             userService = UserServiceFactory.getImpl();
331         }
332 
333         if (userPersistence == null) {
334             userPersistence = UserUtil.getPersistence();
335         }
336 
337         if (userFinder == null) {
338             userFinder = UserFinderUtil.getFinder();
339         }
340     }
341 
342     protected CalEventLocalService calEventLocalService;
343     protected CalEventPersistence calEventPersistence;
344     protected CalEventFinder calEventFinder;
345     protected CounterLocalService counterLocalService;
346     protected CounterService counterService;
347     protected MailService mailService;
348     protected CompanyLocalService companyLocalService;
349     protected CompanyService companyService;
350     protected CompanyPersistence companyPersistence;
351     protected PortletPreferencesLocalService portletPreferencesLocalService;
352     protected PortletPreferencesService portletPreferencesService;
353     protected PortletPreferencesPersistence portletPreferencesPersistence;
354     protected PortletPreferencesFinder portletPreferencesFinder;
355     protected ResourceLocalService resourceLocalService;
356     protected ResourceService resourceService;
357     protected ResourcePersistence resourcePersistence;
358     protected ResourceFinder resourceFinder;
359     protected UserLocalService userLocalService;
360     protected UserService userService;
361     protected UserPersistence userPersistence;
362     protected UserFinder userFinder;
363 }